Packagede.popforge.imageprocessing.filters.convolution
Classpublic final class Blur
InheritanceBlur Inheritance NativeFilter

The Blur class is an implementation of the native BlurFilter.

Supported formats:


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

flash.filters.BlurFilter


Protected Properties
 PropertyDefined by
 Inheritedfilter : BitmapFilter
The native filter that will be overridden by a subclass of NativeFilter.
NativeFilter
Public Methods
 MethodDefined by
  
Blur(blurX:Number = 4, blurY:Number = 4, quality:int = 1)
Creates a new Blur object.
Blur
 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.
Blur
Constructor detail
Blur()constructor
public function Blur(blurX:Number = 4, blurY:Number = 4, quality:int = 1)

Creates a new Blur object.

Parameters
blurX:Number (default = 4) — The amount to blur horizontally. Valid values are from 0 to 255.0 (floating-point value).
 
blurY:Number (default = 4) — The amount to blur vertically. Valid values are from 0 to 255.0 (floating-point value).
 
quality:int (default = 1) — The number of times to apply the filter. You can specify the quality using the BitmapFilterQuality constants.
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.