Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_pixread() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_PIXREAD()

 DESCRIPTION

 C_PIXREAD() determines, at a given row and column coordinate, if
 the pixel is set on or off.  The function returns the pixel color
 if the pixel is set.

 SYNTAX

 C_PIXREAD(row, column)

 PARAMETERS

 row (N) is the graphics row coordinate to read.

 column (N) is the graphics column coordinate to read.

 RETURNS

 C_PIXREAD() returns a numeric color code for the pixel read, or
 zero (0) if the pixel is not set.  The following is a list of the
 color codes returned:

 CODE   COLOR
 ----   -----
 0      Pixel Not Set
 1      Blue
 2      Green
 3      Cyan
 4      Red
 5      Magenta
 6      Brown
 7      White

 EXAMPLES

 c_setmode(16)
 ...
 c_pixwrite(100,100,4)         && Sets pixel at coordinates 100,100 red
 ...
 ? c_pixread(100,100) --> 4    && Reads at 100,100 - returns 4 (red)

 ? c_pixread(101,101) --> 0    && Reads at 101,101 - returns 0, nothing set


See Also: C_PIXWRITE() C_GETMODE() C_SETMODE() C_GETVIDEO()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson