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

Merges the red, green and blue channels of a BitmapData with another BitmapData



Public Properties
 PropertyDefined by
  alphaMultiplier : uint
A hexadecimal color which defines the amount of the alpha channel to merge.
MergeEffect
  blueMultiplier : uint
A hexadecimal color which defines the amount of the blue channel to merge.
MergeEffect
  clipRect : Rectangle
The clipping rectangle to use when merging the source BitmapData onto the destination BitmapData.
MergeEffect
  greenMultiplier : uint
A hexadecimal color which defines the amount of the green channel to merge.
MergeEffect
  point : Point
The destination point to draw the sourceRect from.
MergeEffect
  redMultiplier : uint
A hexadecimal color which defines the amount of the red channel to merge.
MergeEffect
  sourceBmd : BitmapData
The source BitmapData to be used to merge onto the destination BitmapData.
MergeEffect
Public Methods
 MethodDefined by
  
MergeEffect(sourceBmd:BitmapData, redMultiplier:uint = 0, greenMultiplier:uint = 0, blueMultiplier:uint = 0, alphaMultiplier:uint = 0, point:Point = null, clipRect:Rectangle = null)
MergeEffect
  
render(bmd:BitmapData):void
Renders the MergeEffect to the specified BitmapData.
MergeEffect
Property detail
alphaMultiplierproperty
public var alphaMultiplier:uint

A hexadecimal color which defines the amount of the alpha channel to merge. i.e. 0x80 will be 50%

blueMultiplierproperty 
public var blueMultiplier:uint

A hexadecimal color which defines the amount of the blue channel to merge. i.e. 0x80 will be 50%

clipRectproperty 
public var clipRect:Rectangle

The clipping rectangle to use when merging the source BitmapData onto the destination BitmapData.

greenMultiplierproperty 
public var greenMultiplier:uint

A hexadecimal color which defines the amount of the green channel to merge. i.e. 0x80 will be 50%

pointproperty 
public var point:Point

The destination point to draw the sourceRect from.

redMultiplierproperty 
public var redMultiplier:uint

A hexadecimal color which defines the amount of the red channel to merge. i.e. 0x80 will be 50%

sourceBmdproperty 
public var sourceBmd:BitmapData

The source BitmapData to be used to merge onto the destination BitmapData.

Constructor detail
MergeEffect()constructor
public function MergeEffect(sourceBmd:BitmapData, redMultiplier:uint = 0, greenMultiplier:uint = 0, blueMultiplier:uint = 0, alphaMultiplier:uint = 0, point:Point = null, clipRect:Rectangle = null)

Parameters
sourceBmd:BitmapData — The source BitmapData to be used to merge onto the destination BitmapData.
 
redMultiplier:uint (default = 0) — A hexadecimal color which defines the amount of the red channel to merge.
 
greenMultiplier:uint (default = 0) — A hexadecimal color which defines the amount of the green channel to merge.
 
blueMultiplier:uint (default = 0) — A hexadecimal color which defines the amount of the blue channel to merge.
 
alphaMultiplier:uint (default = 0) — A hexadecimal color which defines the amount of the alpha channel to merge.
 
point:Point (default = null) — The destination point to draw the sourceRect from.
 
clipRect:Rectangle (default = null) — The clipping rectangle to use when merging the source BitmapData onto the destination BitmapData.
Method detail
render()method
public function render(bmd:BitmapData):void

Renders the MergeEffect to the specified BitmapData.

Parameters
bmd:BitmapData