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

The ChannelEffect retrieves one or more channels from a source BitmapData and applies it to one or more destination BitmapData channels.



Public Properties
 PropertyDefined by
  destChannel : uint
The channel to apply to the destination BitmapData.
You can use the bitwise OR operator (|) to combine channel values.
ChannelEffect
  destPoint : Point
The position from which to retrieve the channel from.
ChannelEffect
  sourceBmd : BitmapData
The source BitmapData to copy a channel from.
ChannelEffect
  sourceChannel : uint
The channel(s) to retrieve from the sourceBmd.
You can use the bitwise OR operator (|) to combine channel values.
ChannelEffect
  sourceRect : Rectangle
The clipping Rectangle area to retrieve the channel from.
ChannelEffect
Public Methods
 MethodDefined by
  
ChannelEffect(sourceBmd:BitmapData, sourceChannel:uint, destChannel:uint, sourceRect:Rectangle = null, destPoint:Point = null)
ChannelEffect
  
render(bmd:BitmapData):void
Renders the ChannelEffect to the specified BitmapData.
ChannelEffect
Property detail
destChannelproperty
public var destChannel:uint

The channel to apply to the destination BitmapData.
You can use the bitwise OR operator (|) to combine channel values.

i.e. BitmapDataChannel.RED | BitmapDataChannel.GREEN | BitmapDataChannel.BLUE will copy all channels except BitmapDataChannel.ALPHA

destPointproperty 
public var destPoint:Point

The position from which to retrieve the channel from.

sourceBmdproperty 
public var sourceBmd:BitmapData

The source BitmapData to copy a channel from.

sourceChannelproperty 
public var sourceChannel:uint

The channel(s) to retrieve from the sourceBmd.
You can use the bitwise OR operator (|) to combine channel values.

i.e. BitmapDataChannel.RED | BitmapDataChannel.GREEN | BitmapDataChannel.BLUE will copy all channels except BitmapDataChannel.ALPHA

sourceRectproperty 
public var sourceRect:Rectangle

The clipping Rectangle area to retrieve the channel from.

Constructor detail
ChannelEffect()constructor
public function ChannelEffect(sourceBmd:BitmapData, sourceChannel:uint, destChannel:uint, sourceRect:Rectangle = null, destPoint:Point = null)

Parameters
sourceBmd:BitmapData — The source BitmapData to copy a channel from.
 
sourceChannel:uint — The channel(s) to retrieve from the sourceBmd.
 
destChannel:uint — The clipping Rectangle area to retrieve the channel within.
 
sourceRect:Rectangle (default = null) — The position from which to retrieve the channel from.
 
destPoint:Point (default = null)
Method detail
render()method
public function render(bmd:BitmapData):void

Renders the ChannelEffect to the specified BitmapData.

Parameters
bmd:BitmapData