Packagede.popforge.imageprocessing.filters.color
Classpublic class Normalize
ImplementsIFilter

The Normaluze class is a filter that normalizes the colors of an image.

The formula of this filter is new = normalize( old ) * multiplier.

Supported formats:


Example
  
  var filter: Normalize = new Normalize( 0xff );
  
  var video: WebCam = new WebCam( 160, 120 );
  var image: Image = new Image( 160, 120, ImageFormat.RGB );
  
  image.loadBitmapData( video.getCurrentFrame(), true );
  
  filter.apply( image );
  



Public Methods
 MethodDefined by
  
Normalize(mult:Number = 1.0)
Creates a new Normalize object with given multiplier.
Normalize
  
apply(image:Image):void
Applies the filter to the given Image object.
Normalize
  
toString():String
Builds and returns a string containing the name of the class.
Normalize
Constructor detail
Normalize()constructor
public function Normalize(mult:Number = 1.0)

Creates a new Normalize object with given multiplier.

Parameters
mult:Number (default = 1.0) — Multiplier from 0 to 255.
Method detail
apply()method
public function apply(image:Image):void

Applies the filter to the given Image object.

Parameters
image:Image — The image that will be manipulated.
toString()method 
public function toString():String

Builds and returns a string containing the name of the class.

Returns
String — A string containing the name of the class.