bOk = MImgSetOpacity( hImage, nCurOpacityFrom, nCurOpacityTo, nNewOpacity )

Sets the opacity of all pixels which have a current opacity in a certain range.

Parameters
hImage
Number: Handle of the image

nCurOpacityFrom, nCurOpacityTo
Number: The opacity range the pixels should have

nNewOpacity
Number: The new opacity

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

Example
In this example all not fully transparent pixels in an image are set to fully opaque:

Call MImgSetOpacity( hImage, 1, 255, 255 )

See also
About Opacity
MImgSetColorOpacity
MImgSetMaxOpacity
MImgSetPixelOpacity

Created with the Personal Edition of HelpNDoc: Easily create EBooks