Packagede.popforge.imageprocessing.filters.distortion
Classpublic final class RadialBlur
ImplementsIFilter

The RadialBlur class is a filter that applies a blur on a radial displacement.

On th one hand this filter is using simple geometry but on the other hand it is also a blur filter that has to interpolate the color values between all the pixels that have been hit which makes it slow.

Supported formats:


Example
  
  var filter: RadialBlur = new RadialBlur();
  
  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
  
RadialBlur(distanceRadians:Number, centerX:int = -1, centerY:int = -1, quality:int = 0x20)
Creates a new RadialBlur object.
RadialBlur
  
apply(image:Image):void
Applies the filter to the given Image object.
RadialBlur
  
toString():String
Builds and returns a string containing the name of the class.
RadialBlur
Constructor detail
RadialBlur()constructor
public function RadialBlur(distanceRadians:Number, centerX:int = -1, centerY:int = -1, quality:int = 0x20)

Creates a new RadialBlur object.

Parameters
distanceRadians:Number — Distance in radians to rotate.
 
centerX:int (default = -1)x position of the center.
 
centerY:int (default = -1)y position of the center.
 
quality:int (default = 0x20) — Quality of the filter from 0x02 to any value. 0x20 is a decent quality.
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.