re_setpixel()

extern KADMOS_ERROR KADMOS_API re_setpixel
  (ReImage *image, long x, long y, long color);
      

Parameter:

image
Address of the image.
x, y
Coordinates of the pixel.
color
The desired color with which the selected pixel to be occupied.
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. 0 to F, e.g.
0x00 = Black to 0xFF = White
RGB images:
The color format consists of leading 0x gefolgt ollowed by 6 characters of 0 to F, e.g.
0x000000 = Black, 0xFFFFFF = White,
0xFF0000 = Rot, 0x00FF00 = Green, 0x0000FF = Blue, 0xFFFF00 = Yellow

Return value:

RE_SUCCESS or KADMOS error type.

Comment:

With this function in every ReImage image any pixel given by its coordinates (x,y) can be set to the specified color.

Reference: