| Package | de.popforge.imageprocessing.filters.color |
| Class | public final class Invert |
| Inheritance | Invert LUTFilter |
The formula of this filter is new = 0xff - old.
Supported formats:
var filter: Invert = new Invert(); var video: WebCam = new WebCam( 160, 120 ); var image: Image = new Image( 160, 120, ImageFormat.RGB ); image.loadBitmapData( video.getCurrentFrame(), true ); filter.apply( image );
| Method | Defined by | ||
|---|---|---|---|
|
Invert()
Creates a new Invert object.
| Invert | ||
|
Applies the filter to the given Image object.
| Invert | ||
|
toString():String
Builds and returns a string containing the name of the class.
| Invert | ||
| Invert | () | constructor |
public function Invert()Creates a new Invert object.
| apply | () | method |
public override function apply(image:Image):voidApplies the filter to the given Image object.
Parametersimage:Image — The image that will be manipulated.
|
| 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.
|