Packagede.popforge.imageprocessing.filters.distortion
Classpublic final class Ripple
InheritanceRipple Inheritance GeometricDisplacementMap

The Ripple class is a filter that displaces an image using a ripple map.

Supported formats:


Example
  
  var filter: Ripple = new Ripple();
  
  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.RippleMap


Public Methods
 MethodDefined by
  
Ripple(amplitudeX:Number = 16, amplitudeY:Number = 16, frequencyX:Number = .06125, frequencyY:Number = .06125, wrap:Boolean = true, interpolation:Class = null)
Creates a new Ripple object.
Ripple
 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.
Ripple
Constructor detail
Ripple()constructor
public function Ripple(amplitudeX:Number = 16, amplitudeY:Number = 16, frequencyX:Number = .06125, frequencyY:Number = .06125, wrap:Boolean = true, interpolation:Class = null)

Creates a new Ripple object.

Parameters
amplitudeX:Number (default = 16) — Amplitude of the ripple in x direction.
 
amplitudeY:Number (default = 16) — Amplitude of the ripple in y direction.
 
frequencyX:Number (default = .06125) — Frequency of the ripple in x direction.
 
frequencyY:Number (default = .06125) — Frequency of the ripple in y direction.
 
wrap:Boolean (default = true)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.