The JPEGEncoderOptions class defines a compression algorithm for the openfl.display.BitmapData.encode() method.
openfl.display.BitmapData.encode()
new (?quality:Int)
Creates a JPEGEncoderOptions object with the specified setting.
Parameters:
quality
The initial quality value.
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.