| Package | de.popforge.imageprocessing.filters.color |
| Class | public final class QuickContrastCorrection |
| Inheritance | QuickContrastCorrection ColorMatrix NativeFilter |
The formula of this filter is new = contrast * old.
var filter: QuickContrastCorrection = new QuickContrastCorrection(); var video: WebCam = new WebCam( 160, 120 ); var image: Image = new Image( 160, 120, ImageFormat.RGB ); image.loadBitmapData( video.getCurrentFrame(), true ); filter.apply( image );
See also
| Method | Defined by | ||
|---|---|---|---|
|
QuickContrastCorrection(contrast:Number = 1.2)
Creates a new QuickContrastCorrection object.
| QuickContrastCorrection | ||
![]() |
Applies the filter to the given Image object.
| NativeFilter | |
|
toString():String
Builds and returns a string containing the name of the class.
| QuickContrastCorrection | ||
| QuickContrastCorrection | () | constructor |
public function QuickContrastCorrection(contrast:Number = 1.2)Creates a new QuickContrastCorrection object.
Parameterscontrast:Number (default = 1.2) — The contrast value. Values greater 1 add contrast, values lower 1 remove contrast.
|
| 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.
|