Packagede.popforge.imageprocessing.filters.color
Classpublic class Grayscale
ImplementsIFilter
SubclassesGrayscaleBT709, GrayscaleRMY, GrayscaleY

The Grayscale class is a basic filter that allows fast conversion from RGB or RGBA to GRAYSCALE. This filter is not a subclass of ColorMatrix because it behaves in a differen way.

Supported formats:
This is a conversion filter so there are no supported formats.



Public Methods
 MethodDefined by
  
Grayscale(redMultiplier:Number, greenMultiplier:Number, blueMultiplier:Number)
Creates a new Grayscale object with given multipliers.
Grayscale
  
apply(image:Image):void
Applies the filter to the given Image object.
Grayscale
  
toString():String
Builds and returns a string containing the name of the class.
Grayscale
Constructor detail
Grayscale()constructor
public function Grayscale(redMultiplier:Number, greenMultiplier:Number, blueMultiplier:Number)

Creates a new Grayscale object with given multipliers.

Parameters
redMultiplier:Number — The red multiplier.
 
greenMultiplier:Number — The green multiplier.
 
blueMultiplier:Number — The blue multiplier.
Method detail
apply()method
public function apply(image:Image):void

Applies the filter to the given Image object.

Parameters
image:Image — The image that will be manipulated.
toString()method 
public function toString():String

Builds and returns a string containing the name of the class.

Returns
String — A string containing the name of the class.