SE_rasterattr_get_compression_property |
Retrieves the quality for JPEG or JPEG 2000 compression.
LONG SE_rasterattr_get_compression_property (SE_RASTERATTR handle, const CHAR *name, void *value););
handle | The raster attribute handle |
name |
The name of the quality parameter |
value |
The compression quality value |
SE_rasterattr_get_compression_property retrieves the compression quality
value for either JPEG or JPEG2000 compression.
The compression type is retrieved with the SE_rasterattr_get_compression_type
function.
For the SE_COMPRESSION_JPEG compression type, the name is set to "quality". The value may be an integer between 0 and 100.
For the SE_COMPRESSION_JP2 compression type, the name may be either "quality" or "bitrate". If the name is set to "quality", the value will be an integer between 0 and 255. If the name is set to "bitrate", the value will be set to a floating point between 0.0 and 16.0.
SE_SUCCESS
SE_INVALID_RASTERATTR_OBJECT
SE_OPERATION_NOT_ALLOWED
SE_INVALID_PARAM_VALUE