Previous - imgAdjHueSat Section Home - Images Next - imgAdjRGB


imgAdjLight ( )

Adjusts the brightness and contrast of the image stored in memory buffer

Usage:

imgAdjLight (object me, integer brightness, integer contrast)

Parameters:

brightness ( integer) - new brightness level. A value of 0 keeps the same brightness level. Any value less than 0 lightens the image and any value greater than 0 darkens the image

contrast ( integer ) - new contrast level A value of 0 keeps the same contrast. Any value less than 0 decrease the contrast, while any value greater than 0 increases the contrast.

Returns:

(integer) - The success code

Example:

xtRose = xtra("Rosetta").new( )
xtRose.imgOpen( "C:\windows\winnt.bmp" )
xtRose.imgAdjLight( 128, 90 )

Notes:


Previous - imgAdjHueSat Section Home - Images Next - imgAdjRGB