Packagede.popforge.imageprocessing.filters.color
Classpublic class QuickSepia
InheritanceQuickSepia Inheritance ColorMatrix Inheritance NativeFilter

The QuickSepia class is a filter that applies the well-known sepia effect.

This filter is doing the same job as the Sepia filter is doing with a different technique. While the Sepia filter is using the YIQ color-space this filter applies a ColorMatrix on the image. This is faster but the effect is not as good as the one achieved by the original Sepia filter.

Supported formats:


Example
  
  var filter: QuickSepia = new QuickSepia();
  
  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

Sepia


Protected Properties
 PropertyDefined by
 Inheritedfilter : BitmapFilter
The native filter that will be overridden by a subclass of NativeFilter.
NativeFilter
Public Methods
 MethodDefined by
  
Creates a new QuickSepia object.
QuickSepia
 Inherited
apply(image:Image):void
Applies the filter to the given Image object.
NativeFilter
  
toString():String
Builds and returns a string containing the name of the class.
QuickSepia
Constructor detail
QuickSepia()constructor
public function QuickSepia()

Creates a new QuickSepia object.

Method detail
toString()method
public override function toString():String

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

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