| Package | de.popforge.imageprocessing.filters.color |
| Class | public final class GrayscaleY |
| Inheritance | GrayscaleY Grayscale |
The formula of this filter is y = red * 0.299 + green * 0.587 + blue * 0.114.
Supported formats:
This is a conversion filter so there are no supported formats.
// Set the conversion filter to GrayscaleY Image.grayscale = new GrayscaleY(); var video: WebCam = new WebCam( 160, 120 ); var image: Image = new Image( 160, 120, ImageFormat.GRAYSCALE ); image.loadBitmapData( video.getCurrentFrame(), true );
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new GrayscaleY object.
| GrayscaleY | ||
![]() |
Applies the filter to the given Image object.
| Grayscale | |
|
toString():String
Builds and returns a string containing the name of the class.
| GrayscaleY | ||
| GrayscaleY | () | constructor |
public function GrayscaleY()Creates a new GrayscaleY object.
| toString | () | method |
public override function toString():StringBuilds and returns a string containing the name of the class.
ReturnsString — A string containing the name of the class.
|