| Package | de.popforge.imageprocessing.filters.distortion |
| Class | public final class Spherize |
| Inheritance | Spherize GeometricDisplacementMap |
Supported formats:
var filter: Spherize = new Spherize( 80, 60, 60 ); 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
| Method | Defined by | ||
|---|---|---|---|
|
Spherize(centerX:Number = 100, centerY:Number = 100, radius:Number = 50, wrap:Boolean = false, interpolation:Class = null)
Creates a new Spherize object.
| Spherize | ||
![]() |
Applies the filter to the given Image object.
| GeometricDisplacementMap | |
|
toString():String
Builds and returns a string containing the name of the class.
| Spherize | ||
| Spherize | () | constructor |
public function Spherize(centerX:Number = 100, centerY:Number = 100, radius:Number = 50, wrap:Boolean = false, interpolation:Class = null)Creates a new Spherize object.
ParameterscenterX:Number (default = 100) — The x position of the sphere´s center.
|
|
centerY:Number (default = 100) — The y position of the sphere´s center.
|
|
radius:Number (default = 50) — The radius of the sphere.
|
|
wrap:Boolean (default = false) — true if pixels that go over the edge should be wrapped around.
|
|
interpolation:Class (default = null) — The interpolation method to use. Default is Interpolation.BILINEAR.
|
| toString | () | method |
public override function toString():StringBuilds and returns a string containing the name of the class.
ReturnsString — A string containing the name of the class.
|