Packagede.popforge.imageprocessing.filters.distortion
Classpublic final class Spherize
InheritanceSpherize Inheritance GeometricDisplacementMap

The Spherize class is a filter that displaces an image using a sphere map.

Supported formats:


Example
  
  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

de.popforge.imageprocessing.geom.maps.SphereMap


Public Methods
 MethodDefined by
  
Spherize(centerX:Number = 100, centerY:Number = 100, radius:Number = 50, wrap:Boolean = false, interpolation:Class = null)
Creates a new Spherize object.
Spherize
 Inherited
apply(image:Image):void
Applies the filter to the given Image object.
GeometricDisplacementMap
  
toString():String
Builds and returns a string containing the name of the class.
Spherize
Constructor detail
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.

Parameters
centerX: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.
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.