| Package | de.popforge.imageprocessing.filters.color |
| Class | public final class Extract |
| Inheritance | Extract LUTFilter |
The formula of this filter is new = ( old == color ) ? color : 0x00.
Supported formats:
var filter: Extract = new Extract( 0xffffff, true ); var video: WebCam = new WebCam( 160, 120 ); var image: Image = new Image( 160, 120, ImageFormat.RGB ); image.loadBitmapData( video.getCurrentFrame(), true ); filter.apply( image );
| Property | Defined by | ||
|---|---|---|---|
| color : int
The color you want to extract
This property has no effect if you set
cache to true. | Extract | ||
| Method | Defined by | ||
|---|---|---|---|
|
Extract(color:int = 0xffffff, cache:Boolean = true)
Creates a new Extract object.
| Extract | ||
|
Applies the filter to the given Image object.
| Extract | ||
|
toString():String
Builds and returns a string containing the name of the class.
| Extract | ||
| color | property |
public var color:int
The color you want to extract
This property has no effect if you set cache to true.
| Extract | () | constructor |
public function Extract(color:int = 0xffffff, cache:Boolean = true)Creates a new Extract object.
Parameterscolor:int (default = 0xffffff) — Set to true if you want to cache the look-up table.
|
|
cache:Boolean (default = true) — The color you want to extract. 24-BIT integer for RGB images, 32-BIT for RGBA and 8-BIT for grayscale.
|
| 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.
|