Jpeg2000EncoderCompressionQuality Property |
Gets or sets the compression quality to use when compressing an image if CompressionMode = Quality.
Namespace:
Atalasoft.Imaging.Codec.Jpeg2000
Assembly:
Atalasoft.dotImage.Jpeg2000 (in Atalasoft.dotImage.Jpeg2000.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public uint CompressionQuality { get; set; }
Public Property CompressionQuality As UInteger
Get
Set
Property Value
Type:
UInt32A percentage of quality (greater or equal to 1 and less than or equal to 100 or 0 for losslesss). If
CompressionQuality is set to 99, the image will be visually lossless. If the CompressionQuality is set to 100, the image will be
numerically lossless. A value of 1 corresponds to maximum compression, while 0 has the same effect as 100.
Exceptions Exception | Condition |
---|
ArgumentOutOfRangeException | Thrown if the value is less than 0 or greater than 100. |
Examples using Atalasoft.Imaging;
using Atalasoft.Imaging.Codec;
...
AtalaImage myImage = new AtalaImage("imagefile.jpg");
myImage.Save("imagefile.jp2", new Jpeg2000Encoder(Jp2CompressionMode.Quality, 77), null);
See Also