The JPEGEncoderOptions class defines a compression algorithm for the openfl.display.BitmapData.encode() method.

Constructor

new (quality:Int = 80)

Creates a JPEGEncoderOptions object with the specified setting.

Parameters:

quality

The initial quality value.

Variables

quality:Int

A value between 1 and 100, where 1 means the lowest quality and 100 means the highest quality. The higher the value, the larger the size of the output of the compression, and the smaller the compression ratio.