Property CompressionLevel
CompressionLevel
Gets or initializes the compression level to use when encoding images. Default is High.
Declaration
public ImageCompressionLevel CompressionLevel { get; init; }
Property Value
| Type | Description |
|---|---|
| ImageCompressionLevel |
Remarks
This setting only affects the computational effort of compression (and thus the resulting file size), not the visual quality. The setting has no effect on formats that do not support compression.
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | The value is not a defined ImageCompressionLevel value. |