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

Constructor

@:value({ fastCompression : false })new(fastCompression:Bool = false)

Creates a PNGEncoderOptions object, optionally specifying compression settings.

Parameters:

fastCompression

The initial compression mode.

Variables

fastCompression:Bool

Chooses compression speed over file size. Setting this property to true improves compression speed but creates larger files.