Jpeg2000EncoderCompressionMode Property |
Namespace: Atalasoft.Imaging.Codec.Jpeg2000
This property specifies how the Compression property will be used. If the CompressionMode is set to Jp2CompressionMode.Size, the encoder will attempt to make the output stream the same size as the value of CompressionSize. If the CompressionMode is set to Jp2CompressionMode.Quality, the CompressionQuality property is used as a percentage where the target output size will try to be Compression% of the original image size. ranging 1 (maximum compression) to 100 (lossless). A value of 0 of the both properties is for lossless.
Jp2CompressionMode.Quality cannot be used with with JPEG2000WaveletFilter.FiveThree, with JPEG2000QuantizationStyle.Derived or with regions of interest.