re_getpixel()

extern XXX_ERROR XXX_API re_getpixel
  (const ReImage *image, long x, long y, long *color);
      

Parameter:

image
Address of the image.
x, y
Coordinates of the pixel.
color
Pointer to a long variable to take the color of the pixel.
Binary images:
0 = Black and 1 = White
Gray images:
The color format consists of leading 0x followed by 2 characters of 0 bis F, z.B.
0x00 = Black to 0xFF = White
RGB images:
The color format consists of leading 0x followed by 6 characters of 0 to F, e.g.
0x000000 = Black, 0xFFFFFF = White,
0xFF0000 = Red, 0x00FF00 = Green, 0x0000FF = Blue, 0xFFFF00 = Yellow

Return value:

RE_SUCCESS or XXX error type.

Comment:

This function retrieves the color of any pixel of a ReImage image given by its coordinates (x,y).

Reference: