DrawableImage::Threshold

DrawableImage::Threshold
UInt32 Threshold(DrawableImage* source, const Rect<SInt32>& sourceRect, const Point<SInt32>& destPoint, OperationType op, UInt32 threshold, UInt32 color, UInt32 mask, bool copySource);
Description

Threshold tests pixel values in an image against a specified threshold and sets pixels that pass the test to new color values.

Parameters
Parameters 
Description 
DrawableImage* source 
The input drawable image to use. 
const Rect<SInt32>& sourceRect 
A rectangle that defines the area of the source image to use as input. 
const Point<SInt32>& destPoint 
The point within the destination image (the current BitmapData instance) that corresponds to the upper-left corner of the source rectangle. 
OperationType op 
One of the following comparison operators, passed as a String: "<", "<=", ">", ">=", "==", "!=" 
UInt32 threshold 
The value that each pixel is tested against to see if it meets or exceeds the threshold. 
UInt32 color 
The color value that a pixel is set to if the threshold test succeeds. 
UInt32 mask 
The mask to use to isolate a color component. 
bool copySource 
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.