function ThresholdFilter(redValue, greenValue, blueValue, passColor, failColor) {
		this.Filter_constructor();

	// public properties
		/**
		 * The threshold value of the red channel. This is a number between 0 and 0xFF (255).
		 * @property redValue
		 * @type {Number}
		 */
		p.redValue = redValue;
	
		/**
		 * The threshold value of the green channel. This is a number between 0 and 0xFF (255).
		 * @property greenValue
		 * @type {Number}
		 */
		p.greenValue = greenValue;
	
		/**
		 * The threshold value of the blue channel. This is a number between 0 and 0xFF (255).
		 * @property blueValue
		 * @type {Number}
		 */
		p.blueValue = blueValue;
	
		/**
		 * The color to use when the channels are greater or equal to the provided threshold values. This value can be a
		 * 24-bit number (0xFFFFFF), or a value of <code>true</code> can be passed in to maintain the original colors in
		 * the image.
		 * @property passColor
		 * @type {Boolean|Number}
		 * @default 0xFFFFFF (white)
		 */
		p.passColor = (passColor == null) ? 0xFFFFFF : passColor;
	
		/**
		 * The color to use when the channels are less than the provided threshold values. This value can be a
		 * 24-bit number (0x000000), or a value of <code>true</code> can be passed in to maintain the original colors in
		 * the image.
		 * @property failColor
		 * @type {Boolean|Number}
		 * @default 0x000000 (black)
		 */
		p.failColor = (failColor == null) ? 0x000000 : failColor;
	}
Applies a threshold to DisplayObjects. Note that this filter is somewhat CPU intensive.

<h4>Example</h4>
This example loads an image, and then applies a threshold of 50% (0x80, or 128) on each channel

     var img = new Image();
     img.onload = handleImageLoad;
     img.src = "assets/photo.png";

     function handleImageLoad() {
         var bmp = new createjs.Bitmap(img);
         var filter = new createjs.ThresholdFilter(0x80, 0x80, 0x80, 0xFF0000, 0x0000FF);
         bmp.filters = [filter];
         bmp.cache(0,0,img.width,img.height);
     }

To get a more realistic "greyscale" threshold, use the static luminosity values provided on the Threshold filter:

     new createjs.ThresholdFilter(
         0xFF * createjs.ThresholdFilter.LUM_R,
         0xFF * createjs.ThresholdFilter.LUM_G,
         0xFF * createjs.ThresholdFilter.LUM_B
     );

See {{#crossLink "Filter"}}{{/crossLink}} for an more information on applying filters.
@class ThresholdFilter
@param {Number} redValue The threshold value of the red channel. This is a number between 0 and 0xFF (255)
@param {Number} greenValue The threshold value of the green channel. This is a number between 0 and 0xFF (255)
@param {Number} blueValue The threshold value of the blue channel. This is a number between 0 and 0xFF (255)
@param {Number|Boolean} [passColor=0xFFFFFF] The color to use when the channels are greater or equal to the
     provided threshold values. This value can be a 24-bit number (0xFF0000), or a value of <code>true</code>
     can be passed in to maintain the original colors in the image.
@param {Number|Boolean} [failColor=0x000000]  The color to use when the channels are less than the provided
     threshold values. This value can be a 24-bit number (0x000000), or a value of <code>true</code> can be
     passed in to maintain the original colors in the image.
@extends Filter
@constructor