| Package | de.popforge.imageprocessing.filters.distortion |
| Class | public final class RadialBlur |
| Implements | IFilter |
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:
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 );
| Method | Defined by | ||
|---|---|---|---|
|
RadialBlur(distanceRadians:Number, centerX:int = -1, centerY:int = -1, quality:int = 0x20)
Creates a new RadialBlur object.
| RadialBlur | ||
|
Applies the filter to the given Image object.
| RadialBlur | ||
|
toString():String
Builds and returns a string containing the name of the class.
| RadialBlur | ||
| RadialBlur | () | constructor |
public function RadialBlur(distanceRadians:Number, centerX:int = -1, centerY:int = -1, quality:int = 0x20)Creates a new RadialBlur object.
ParametersdistanceRadians: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.
|
| apply | () | method |
public function apply(image:Image):voidApplies the filter to the given Image object.
Parametersimage:Image — The image that will be manipulated.
|
| toString | () | method |
public function toString():StringBuilds and returns a string containing the name of the class.
ReturnsString — A string containing the name of the class.
|