SE_rasterattr_set_compression_property

Sets the quality for JPEG or JPEG 2000 compression.

Usage syntax

LONG SE_rasterattr_set_compression_property (SE_RASTERATTR handle, const CHAR *name, void *value););

Parameters
handle The raster attribute handle

name

The name of the quality parameter

value

The compression quality value

Description

SE_rasterattr_set_compression_property sets the compression quality value for either JPEG or JPEG2000 compression.
The compression type is set with the SE_rasterattr_set_compression_type.

For the SE_COMPRESSION_JPEG compression type, the name must be set to "quality". The value may be set to an integer between 0 and 100.

For the SE_COMPRESSION_JP2 compression type, name can be set to either "quality" or "bitrate". If the name is set to "quality", the value can be set to an integer between 0 and 255. If the name is set to "bitrate", the value can be set to a floating point between 0.0 and 16.0.

Returns

SE_SUCCESS
SE_INVALID_RASTERATTR_OBJECT

SE_OPERATION_NOT_ALLOWED

SE_INVALID_PARAM_VALUE