MImgSetLightness
bOk = MImgSetLightness( hImage, nLightness, nContrast )
Increases/decreases an image's lightness and/or contrast.
Parameters
hImage
Number: Handle of the image
nLightness
Number: The lightness. Specify a value > 0 to lighten or < 0 to darken an image. 0 doesn't modify the lightness.
nContrast
Number: The contrast. Specify a value > 0 to increase or < 0 to decrease the contrast of an image. 0 doesn't modify the contrast.
Return
Boolean: TRUE if successful or FALSE if an error occurs
Example
In this example we increase the lightness and decrease the contrast of an image:
Call MImgSetLightness( hImage, 40, -40 )
Original |
Lightened |
Created with the Personal Edition of HelpNDoc: Full-featured multi-format Help generator