VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Codecs.Encoders Namespace / Jpeg2000EncoderSettings Class / CompressionRatio Property
Syntax Exceptions Remarks Requirements SeeAlso
In This Topic
CompressionRatio Property (Jpeg2000EncoderSettings)
In This Topic
Gets or sets the compression rate for the image.
Syntax
'Declaration

<DescriptionAttribute("The compression rate for the image.")>
<DefaultValueAttribute(20)>
Public Property CompressionRatio As Double

[Description("The compression rate for the image.")]
[DefaultValue(20)]
public double CompressionRatio { get; set; }

Property Value

Valid values are greater than or equal to 1.0. Default value is 20.0.
Exceptions
ExceptionDescription
Thrown if new value is less than 1.0.
Remarks

This value has effect only if CompressionType is set to Jpeg2000CompressionType.Lossy and FileSize is less than or equal to 0.

Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also