Back to main

 

Function 35 - read dot color on screen

 

Options:

  * eax = 35

  * ebx = y * xsize + x, where

  * (x, y) = point coordinates (counting from 0)

  * xsize = horizontal screen size

Return value:

  * eax = color 0x00RRGGBB

 

Remarks:

 You can check the screen size by calling function 14. Note that it subtracts 1 from both sizes.

 There is also direct access to the video memory (without calling the system functions) via the gs selector.

The parameters of the current video mode can be obtained by the function 61.

 

Constants for registers:

  eax - SF_GET_PIXEL (35)