| Package | de.popforge.imageprocessing.filters.color |
| Class | public final class BrightnessCorrection |
| Inheritance | BrightnessCorrection LUTFilter |
The formula of this filter is new = clamp( old + brightness ).
Supported formats:
var filter: BrightnessCorrection = new BrightnessCorrection( 0x40, 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 | ||
|---|---|---|---|
| brightness : int
The brightness value from 0x00 to 0xff.
| BrightnessCorrection | ||
| Method | Defined by | ||
|---|---|---|---|
|
BrightnessCorrection(brightness:int = 0x40, cache:Boolean = true)
Creates a new BrightnessCorrection object with given brightness value.
| BrightnessCorrection | ||
|
Applies the filter to the given Image object.
| BrightnessCorrection | ||
|
toString():String
Builds and returns a string containing the name of the class.
| BrightnessCorrection | ||
| brightness | property |
public var brightness:int
The brightness value from 0x00 to 0xff.
This value has no effect if you set cache to true.
| BrightnessCorrection | () | constructor |
public function BrightnessCorrection(brightness:int = 0x40, cache:Boolean = true)Creates a new BrightnessCorrection object with given brightness value.
Parametersbrightness:int (default = 0x40) — Set to true if you want to cache the look-up table.
|
|
cache:Boolean (default = true) — The brightness value you want to add or substract (0x00 to 0xff).
|
| 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.
|