| Package | com.flashdynamix.motion.effects.core |
| Class | public class ThresholdEffect |
| Implements | IEffect |
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| copySource | property |
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.
| maskColor | property |
public var maskColor:uint = 0xFFFFFFFFThe mask to use to isolate a 32-bit color component.
| operation | property |
public var operation:String = "<="One of the following comparison operators, passed as a String: "<", "<=", ">", ">=", "==", "!="
| point | property |
public var point:PointThe point within the destination image (the current BitmapData instance) that corresponds to the upper-left corner of the source rectangle.
| replaceColor | property |
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.
| threshold | property |
public var threshold:uint = 0x50FFFFFFThe 32-bit color value that each pixel is tested against to see if it meets or exceeds the threshhold.
| 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.
|
| render | () | method |
public function render(bmd:BitmapData):voidRenders the ThresholdEffect on to the specified BitmapData.
Parametersbmd:BitmapData |