VintaSoft Imaging .NET SDK 12.4: 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; }
    
    
    [Description("The compression rate for the image.")]
    [DefaultValue(20)]
    public: __property double get_CompressionRatio();
    public: __property void set_CompressionRatio(
    double value
    );
    [Description("The compression rate for the image.")]
    [DefaultValue(20)]
    public:
    property double CompressionRatio { double get(); void set(double value); }

    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 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also