Previous - imgDepth Section Home - Images Next - imgXDPI


imgSetDepth ( )

Sets the depth ( bits per pixel ) of the image stored in Rosetta's memory buffer

Usage:

imgSetDepth (object me, integer newDepth)

Parameters:

newDepth (integer) - the new image depth. Valid values are 1,4,8,24 and 32 bit.

Returns:

(integer) - The success code

Example:

xtRose = xtra("Rosetta").new( )
xtRose.imgOpen( "C:\windows\winnt.bmp" )
xtRose.imgSetDepth( 24 )

Notes:

Internally, Rosetta stores all images in either 1,4,8,24 or 32 bit image. 16 bit depth is not yet supported.


Previous - imgDepth Section Home - Images Next - imgXDPI