Previous - imgSaveQuality Section Home - Images Next - imgClose


imgSetSaveQuality ( )

Sets the save quality (compression) to use when saving images from Rosetta's memory buffer onto a file

Usage:

imgSetSaveQuality (object me, integer quality )

Parameters:

quality (integer) - sets the new image quality. A value between 1 to 100.

Returns:

(integer) - The success code

Example:

xtRose = xtra("Rosetta").new( )
xtRose.imgOpen( "C:\windows\test.jpg" )
xtRose.imgSetSaveQuality( 80 )

Notes:

Save quality is only applicable to file formats such as JPG and TIFF. This setting will have no effect on other image formats.


Previous - imgSaveQuality Section Home - Images Next - imgClose