MImgSetColorOpacity
bOk = MImgSetColorOpacity( hImage, nColor, nOpacity )
Sets the opacity of all pixels with a certain color.
Parameters
hImage
Number: Handle of the image
nColor
Number: The color the pixels should have
nOpacity
Number: The opacity
Return
Boolean: TRUE if successful or FALSE if an error occurs
Example
In this example all red pixels in an image are set to fully transparent:
Call MImgSetColorOpacity( hImage, COLOR_Red, 0 )
See also
About Opacity
MImgSetMaxOpacity
MImgSetOpacity
MImgSetPixelOpacity
Created with the Personal Edition of HelpNDoc: Write EPub books for the iPad