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

Applies a threshold effects on to the BitmapData



Public Properties
 PropertyDefined by
  copySource : Boolean = false
If the value is true, pixel values from the source image are copied to the destination when the threshold test fails.
If the value is false, the source image is not copied when the threshold test fails.
ThresholdEffect
  maskColor : uint = 0xFFFFFFFF
The mask to use to isolate a 32-bit color component.
ThresholdEffect
  operation : String = "<="
One of the following comparison operators, passed as a String: "<", "<=", ">", ">=", "==", "!="
ThresholdEffect
  point : Point
The point within the destination image (the current BitmapData instance) that corresponds to the upper-left corner of the source rectangle.
ThresholdEffect
  replaceColor : uint = 0x00FFFFFF
The 32-bit color value that a pixel is set to if the threshold test succeeds.
The default value is 0x00000000.
ThresholdEffect
  threshold : uint = 0x50FFFFFF
The 32-bit color value that each pixel is tested against to see if it meets or exceeds the threshhold.
ThresholdEffect
Public Methods
 MethodDefined by
  
ThresholdEffect(operation:String = "<=", threshold:uint = 0x50FFFFFF, replaceColor:uint = 0x00FFFFFF, maskColor:uint = 0xFFFFFFFF, copySource:Boolean = false)
ThresholdEffect
  
render(bmd:BitmapData):void
Renders the ThresholdEffect on to the specified BitmapData.
ThresholdEffect
Property detail
copySourceproperty
public var copySource:Boolean = false

If the value is true, pixel values from the source image are copied to the destination when the threshold test fails.
If the value is false, the source image is not copied when the threshold test fails.

maskColorproperty 
public var maskColor:uint = 0xFFFFFFFF

The mask to use to isolate a 32-bit color component.

operationproperty 
public var operation:String = "<="

One of the following comparison operators, passed as a String: "<", "<=", ">", ">=", "==", "!="

pointproperty 
public var point:Point

The point within the destination image (the current BitmapData instance) that corresponds to the upper-left corner of the source rectangle.

replaceColorproperty 
public var replaceColor:uint = 0x00FFFFFF

The 32-bit color value that a pixel is set to if the threshold test succeeds.
The default value is 0x00000000.

thresholdproperty 
public var threshold:uint = 0x50FFFFFF

The 32-bit color value that each pixel is tested against to see if it meets or exceeds the threshhold.

Constructor detail
ThresholdEffect()constructor
public function ThresholdEffect(operation:String = "<=", threshold:uint = 0x50FFFFFF, replaceColor:uint = 0x00FFFFFF, maskColor:uint = 0xFFFFFFFF, copySource:Boolean = false)

Parameters
operation:String (default = "<=") — One of the following comparison operators, passed as a String: "<", "<=", ">", ">=", "==", "!="
 
threshold:uint (default = 0x50FFFFFF) — The 32-bit color value that each pixel is tested against to see if it meets or exceeds the threshhold.
 
replaceColor:uint (default = 0x00FFFFFF) — The 32-bit color value that a pixel is set to if the threshold test succeeds.
 
maskColor:uint (default = 0xFFFFFFFF) — The mask to use to isolate a 32-bit color component.
 
copySource:Boolean (default = false) — If the value is true, pixel values from the source image are copied to the destination when the threshold test fails.
Method detail
render()method
public function render(bmd:BitmapData):void

Renders the ThresholdEffect on to the specified BitmapData.

Parameters
bmd:BitmapData