bOk = MImgStripOpacity( hImage, nColor )

Transfers all opacity data of an image ( transparent color, opacity and max. opacity ) into the image's color data using the specified color as "virtual background".
All opacity data is resetted after the transfer.

Parameters
hImage
Number: Handle of the image

nColor
Number: The color to use as "virtual background"

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

Example

Call MImgStripOpacity( hImage, COLOR_Yellow )

Original

Stripped


Remarks
If the image has a palette ( Bpp < 24 ) and the color isn't in the palette, the image is converted to 24 Bpp.
You should call this function before drawing an image into the device context of a printer or metafile.
Furthermore, if you have a constant background color, for draw performance reasons it's recommendable to strip the opacity.

See also
About Opacity

Created with the Personal Edition of HelpNDoc: Create help files for the Qt Help Framework