#graphic-flex-image-effects-10-Flex-IsolateColorEffect.ax [swf] [flash] flex
Custom shader effect that allows you to isolate a single color in an image, setting a hue and luminance threshold for the isolation. Pixels that do not fall within these thresholds will either be hidden (no opacity) or made grayscale.
Constructor. Sets initial properties.
parameter: color The color to isolate in the image.
parameter: hueThreshold The variance from the color's hue that will still be considered a match.
parameter: luminanceThreshold The variance from the color's luminance that will still be considered a match.
parameter: hideNonIsolated True to set non-isolated pixels to be transparent, false to make pixels grayscale.
parameter: blendMode The blend mode to use when applying the effect.
parameter: alpha The alpha to use when applying the effect.
Configures the shader data with this instance's property values. @para data The data for the shader on which parameters can be set.
Sets the color to isolate in the image. This splits up the color into component channel values.
parameter: color The numeric value of the color to isolate.
Sets the threshold in which a pixel's hue is considered a match to the set color. This ensures a value between 0 and 360.
parameter: threshold The amount that a pixel's hue can vary from the color's hue and still be a match.
Sets the threshold in which a pixel's luminance is considered a match to the set color. This ensures a value between 0 and 255.
parameter: threshold The amount that a pixel's luminance can vary from the color's luminance and still be a match.
Sets whether non-isolated colors should be hidden or made grayscale. This transforms the Boolean value to a 0 or 1 as used by the shader.
parameter: hide True to set non-isolated pixels to be transparent, false to make pixels grayscale.
(C) Æliens 04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.