| Package | de.popforge.imageprocessing.filters.color |
| Class | public final class GrayscaleRMY |
| Inheritance | GrayscaleRMY Grayscale |
The formula of this filter is y = red * 0.5 + green * 0.419 + blue * 0.81.
Supported formats:
This is a conversion filter so there are no supported formats.
// Set the conversion filter to GrayscaleRMY Image.grayscale = new GrayscaleRMY(); 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 GrayscaleRMY object.
| GrayscaleRMY | ||
![]() |
Applies the filter to the given Image object.
| Grayscale | |
|
toString():String
Builds and returns a string containing the name of the class.
| GrayscaleRMY | ||
| GrayscaleRMY | () | constructor |
public function GrayscaleRMY()Creates a new GrayscaleRMY 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.
|