Previous - imgAdjLight Section Home - Images Next - imgAdjGamma


imgAdjRGB ( )

Shifts the red, green and blue channels of the image stored in memory buffer

Usage:

imgAdjRGB (object me, integer r, integer g, integer b)

Parameters:

r ( integer) - red channel shift amount i the range of 0 to 255

g ( integer ) - green channel shift amount i the range of 0 to 255

b ( integer ) - blue channel shift amount i the range of 0 to 255

Returns:

(integer) - The success code

Example:

xtRose = xtra("Rosetta").new( )
xtRose.imgOpen( "C:\windows\winnt.bmp" )
xtRose.imgAdjRGB( 125, 125, 125 )

Notes:


Previous - imgAdjLight Section Home - Images Next - imgAdjGamma