Packagecom.flashdynamix.motion.effects.core
Classpublic class DrawEffect
ImplementsIEffect

Draws an IBitmapDrawable onto a BitmapData with options to apply a Matrix transformation, ColorTransform, BlendMode or clipping Rectangle onto the drawn BitmapData.



Public Properties
 PropertyDefined by
  blendMode : String = "normal"
The BlendMode to be used on render of the IBitmapDrawable to the BitmapData.
DrawEffect
  colorTransform : ColorTransform
The ColorTransform to be used on render of the IBitmapDrawable to the BitmapData.
DrawEffect
  matrix : Matrix
The Matrix transformation to be used on render of the IBitmapDrawable to the BitmapData.
DrawEffect
  rect : Rectangle
The clipping Rectangle to be used on render of the IBitmapDrawable to the BitmapData.
DrawEffect
  smoothing : Boolean = false
Whether the BitmapData will be drawn with pixel smoothing.
DrawEffect
  source : IBitmapDrawable
The source IBitmapDrawable to be drawn onto the BitmapData on render.
DrawEffect
Public Methods
 MethodDefined by
  
DrawEffect(source:IBitmapDrawable, matrix:Matrix = null, rect:Rectangle = null, colorTransform:ColorTransform = null, blendMode:String = "normal", smoothing:Boolean = false)
DrawEffect
  
render(bmd:BitmapData):void
Renders the DrawEffect on to the specified BitmapData.
DrawEffect
Property detail
blendModeproperty
public var blendMode:String = "normal"

The BlendMode to be used on render of the IBitmapDrawable to the BitmapData.

colorTransformproperty 
public var colorTransform:ColorTransform

The ColorTransform to be used on render of the IBitmapDrawable to the BitmapData.

matrixproperty 
public var matrix:Matrix

The Matrix transformation to be used on render of the IBitmapDrawable to the BitmapData.

rectproperty 
public var rect:Rectangle

The clipping Rectangle to be used on render of the IBitmapDrawable to the BitmapData.

smoothingproperty 
public var smoothing:Boolean = false

Whether the BitmapData will be drawn with pixel smoothing.

sourceproperty 
public var source:IBitmapDrawable

The source IBitmapDrawable to be drawn onto the BitmapData on render.

Constructor detail
DrawEffect()constructor
public function DrawEffect(source:IBitmapDrawable, matrix:Matrix = null, rect:Rectangle = null, colorTransform:ColorTransform = null, blendMode:String = "normal", smoothing:Boolean = false)

Parameters
source:IBitmapDrawable — The source IBitmapDrawable to be drawn onto the BitmapData on render.
 
matrix:Matrix (default = null) — The Matrix transformation to be used on render of the IBitmapDrawable to the BitmapData.
 
rect:Rectangle (default = null) — The clipping Rectangle to be used on render of the IBitmapDrawable to the BitmapData.
 
colorTransform:ColorTransform (default = null) — The ColorTransform to be used on render of the IBitmapDrawable to the BitmapData.
 
blendMode:String (default = "normal") — The BlendMode to be used on render of the IBitmapDrawable to the BitmapData.
 
smoothing:Boolean (default = false) — Whether the BitmapData will be drawn with pixel smoothing.
Method detail
render()method
public function render(bmd:BitmapData):void

Renders the DrawEffect on to the specified BitmapData.

Parameters
bmd:BitmapData