VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging Namespace / WebPngEncoderSettingsJS type / set_CompressionLevel Property
Syntax BrowserCompatibility SeeAlso
In This Topic
set_CompressionLevel Method
In This Topic
Sets the compression level.
Syntax
var instance = new Vintasoft.Imaging.WebPngEncoderSettingsJS(filterMethod, compressionLevel);

var returnValue; // Type: any

// Parameters
var value; // Type: number

returnValue = instance.set_CompressionLevel(value);

Parameters

value
The compression level. Possible values: from 0 to 9 (0 - no compression, 1 - best speed, 9 - best compression.). Default value is 6.
Browser Compatibility
56+
45+
11
See Also