bOk = MImgSetPixelColor( hImage, nX, nY, nColor )

Sets the color of an image's pixel.

Parameters
hImage
Number: Handle of the image

nX, nY
Number: X,Y coordinate

nColor
Number: The new pixel color

Return
Boolean: TRUE if successful or FALSE if an error occurs

Example
In this example the color of the top left pixel is set to red:

Call MImgSetPixelColor( hImage, 0, 0, COLOR_Red )

See also
MImgGetPixelColor
MImgSetPixelOpacity

Created with the Personal Edition of HelpNDoc: Easy EBook and documentation generator