MImgSetTranspColor
bOk = MImgSetTranspColor( hImage, nColor )
Sets an image's transparent color.
Parameters
hImage
Number: Handle of the image
nColor
Number: The transparent color or MIMG_COLOR_UNDEF for no transparent color
Return
Boolean: TRUE if successful or FALSE if an error occurs
Example
In this example the top left pixel of an image is used as transparent color:
Set nColor = MImgGetPixelColor( hImage, 0, 0 )
If nColor != MIMG_COLOR_UNDEF
Call MImgSetTranspColor( hImage, nColor )
Remarks
If the image has a palette ( Bpp < 24 ) and the specified color isn't in the palette, the function fails.
See also
About Opacity
MImgGetTranspColor
Created with the Personal Edition of HelpNDoc: Produce online help for Qt applications