MImgSubstColor
bOk = MImgSubstColor( hImage, nOldColor, nNewColor )
Sets the color of all pixels with a certain color.
Parameters
hImage
Number: Handle of the image
nOldColor
Number: The color the pixels should have. Specify MIMG_COLOR_UNDEF to substitute the color of all pixels.
nNewColor
Number: The new color
Return
Boolean: TRUE if successful or FALSE if an error occurs
Example
In this example all red pixels are set to black:
Call MImgSubstColor( hImage, COLOR_Red, COLOR_Black )
Remarks
If the image has color transparency ( = a transparent color ), it is converted into alpha transparency ( = the opacity of the pixels which have the transparent color is set to 0 ) when
the color to substitute is MIMG_COLOR_UNDEF ( = all pixels ) or equal to the transparent color.
See also
MImgSetPixelColor
Created with the Personal Edition of HelpNDoc: Create HTML Help, DOC, PDF and print manuals from 1 single source