Packageflash.display
Classpublic final class PNGEncoderOptions
InheritancePNGEncoderOptions Inheritance Object

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 11.3, AIR 3.3

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

See also

flash.display.BitmapData
flash.display.BitmapData.encode()
bitmap data


Public Properties
 PropertyDefined By
  fastCompression : Boolean
Chooses compression speed over file size.
PNGEncoderOptions
Public Methods
 MethodDefined By
  
PNGEncoderOptions(fastCompression:Boolean = false)
Creates a PNGEncoderOptions object, optionally specifying compression settings.
PNGEncoderOptions
 Inherited
_init():*
[static]
_init
 Inherited
AS3
 Inherited
init():*
[static]
init
 Inherited
AS3
 Inherited
AS3
Protected Methods
 MethodDefined By
 Inherited
[static]
protected
 Inherited
_setPropertyIsEnumerable(o:*, V:String, enumerable:Boolean):void
[static]
protected
Public Constants
 ConstantDefined By
 Inheritedlength : int = 1
[static]
length
Property Detail
fastCompressionproperty
public var fastCompression:Boolean

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 11.3, AIR 3.3

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

Constructor Detail
PNGEncoderOptions()Constructor
public function PNGEncoderOptions(fastCompression:Boolean = false)

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 11.3, AIR 3.3

Creates a PNGEncoderOptions object, optionally specifying compression settings.

Parameters
fastCompression:Boolean (default = false) — The initial compression mode.