The ICompressionSettings interface provides images, video, and audio compression settings. For video and audio, you can set bitrate or quality in percents. For images, you can set quality in percents or IQ_LOSSLESS, which allows the compression of PNG images without loss in quality,
This interface can be obtained using the ISettings.Compression property.
Table 1. Properties
Property | Value Type | Access | Default value | Property description |
---|
AudioQuality | int | Read/Write | 75 | Specifies audio quality in percents [0–100%]. |
AudioBitrate | AudioBitrateEnum | Read/Write | AB_128 (128) | Specifies audio bitrate. |
VideoQuality | int | Read/Write | 75 | Specifies video quality in percents [0–100%]. |
VideoBitrate | int | Read/Write | 400 | Specifies video bitrate [50–20000]. |
ImageQuality | int | Read/Write | IQ_LOSSLESS (0) | Specifies JPEG compression quality [0–100%] of graphic images, or IQ_LOSSLESS (0) to apply lossless PNG compression. |
PhotoImageQuality | int | Read/Write | IQ_JPEG_DEFAULT (80) | Specifies JPEG compression quality [0-100%] of photos, or IQ_LOSSLESS (0) to apply lossless PNG compression. |
GifImageQuality | int | Read/Write | IQ_JPEG_DEFAULT (80) | Specifies JPEG compression quality [0–100%] of GIF images, or IQ_LOSSLESS (0) to apply lossless PNG compression. |
Check the ImageQuality Enumeration article to learn more about image quality preset values.
Table 2. Methods
Method | Description |
---|
void Reset() | Restores default compression settings |