| Package | de.popforge.imageprocessing.filters.distortion |
| Class | public final class ZoomBlur |
| 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: ZoomBlur = new ZoomBlur(); 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 | ||
|---|---|---|---|
|
ZoomBlur(distance:int = 0x20, centerX:int = -1, centerY:int = -1, quality:int = 0x20)
Creates a new ZoomBlur object.
| ZoomBlur | ||
|
Applies the filter to the given Image object.
| ZoomBlur | ||
|
toString():String
Builds and returns a string containing the name of the class.
| ZoomBlur | ||
| ZoomBlur | () | constructor |
public function ZoomBlur(distance:int = 0x20, centerX:int = -1, centerY:int = -1, quality:int = 0x20)Creates a new ZoomBlur object.
Parametersdistance:int (default = 0x20) — Distance in pixels to zoom out.
|
|
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 0x00 to 0x20.
|
| 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.
|