bOk = MImgDisable( hImage )

Converts the image into a disabled state.

Parameters
hImage
Number: Handle of the image

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

Example

Call MImgDisable( hImage )

Original

Disabled

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 ).
Draw operations are much faster when you disable an image with this function instead of using the draw state MIMG_DST_DISABLED or the draw parameter MIMG_DRAW_DISABLED.

See also
MImgGrayScale
MImgInvert
MImgRotate
MImgSetDrawState

Created with the Personal Edition of HelpNDoc: Easily create PDF Help documents