VintaSoft Imaging .NET SDK 14.0: Documentation for Web developer
Vintasoft.Imaging Namespace / WebJpeg2000EncoderSettingsJS type / set_CompressionRatio Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
    set_CompressionRatio Method
    In This Topic
    Sets the compression rate for the image.
    Syntax
    var instance = new Vintasoft.Imaging.WebJpeg2000EncoderSettingsJS();
    
    var returnValue; // Type: any
    
    // Parameters
    var value; // Type: number
    
    returnValue = instance.set_CompressionRatio(value);
    
    
    function set_CompressionRatio(
    value
    The compression rate for the image. Valid values are greater than or equal to 1.0. Default value is 20.
    : number
    ) : any;

    Parameters

    value
    The compression rate for the image. Valid values are greater than or equal to 1.0. Default value is 20.
    Exceptions
    ExceptionDescription
    Thrown if argument has wrong type.
    Thrown if argument is out of range.
    Remarks

    This value has effect only if get_CompressionType is set to "Lossy" and get_FileSize is less than or equal to 0.

    Browser Compatibility
    56+
    45+
    11
    See Also