Packagede.popforge.imageprocessing.filters.convolution
Classpublic final class Emboss
InheritanceEmboss Inheritance Convolution Inheritance NativeFilter

The Emboss class is a filter that uses a convolution matrix to apply an emboss effect.

Divisor is 2.2. The convolution matrix is static.
[ -4, -2, 0 ]
[ -2,  2, 2 ]
[  0,  2, 4 ]

Supported formats:


Example
  
  var filter: Emboss = new Emboss();
  
  var video: WebCam = new WebCam( 160, 120 );
  var image: Image = new Image( 160, 120, ImageFormat.GRAYSCALE );
  
  image.loadBitmapData( video.getCurrentFrame(), true );
  
  filter.apply( image );
  



Protected Properties
 PropertyDefined by
 Inheritedfilter : BitmapFilter
The native filter that will be overridden by a subclass of NativeFilter.
NativeFilter
Public Methods
 MethodDefined by
  
Emboss
 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.
Emboss
Constructor detail
Emboss()constructor
public function Emboss()
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.