railo.runtime.img.filter
Class MarbleFilter

java.lang.Object
  extended by railo.runtime.img.filter.AbstractBufferedImageOp
      extended by railo.runtime.img.filter.TransformFilter
          extended by railo.runtime.img.filter.MarbleFilter
All Implemented Interfaces:
BufferedImageOp, Cloneable, DynFiltering

public class MarbleFilter
extends TransformFilter
implements DynFiltering

This filter applies a marbling effect to an image, displacing pixels by random amounts.


Field Summary
 
Fields inherited from class railo.runtime.img.filter.TransformFilter
BILINEAR, NEAREST_NEIGHBOUR
 
Constructor Summary
MarbleFilter()
           
 
Method Summary
 BufferedImage filter(BufferedImage src, BufferedImage dst)
           
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 float getAmount()
          Get the amount of effect.
 float getTurbulence()
          Returns the turbulence of the effect.
 float getXScale()
          Get the X scale of the effect.
 float getYScale()
          Get the Y scale of the effect.
 void setAmount(float amount)
          Set the amount of effect.
 void setTurbulence(float turbulence)
          Specifies the turbulence of the effect.
 void setXScale(float xScale)
          Set the X scale of the effect.
 void setYScale(float yScale)
          Set the Y scale of the effect.
 String toString()
           
 
Methods inherited from class railo.runtime.img.filter.TransformFilter
getEdgeAction, getInterpolation, setEdgeAction, setInterpolation
 
Methods inherited from class railo.runtime.img.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MarbleFilter

public MarbleFilter()
Method Detail

setXScale

public void setXScale(float xScale)
Set the X scale of the effect.

Parameters:
xScale - the scale.
See Also:
getXScale()

getXScale

public float getXScale()
Get the X scale of the effect.

Returns:
the scale.
See Also:
setXScale(float)

setYScale

public void setYScale(float yScale)
Set the Y scale of the effect.

Parameters:
yScale - the scale.
See Also:
getYScale()

getYScale

public float getYScale()
Get the Y scale of the effect.

Returns:
the scale.
See Also:
setYScale(float)

setAmount

public void setAmount(float amount)
Set the amount of effect.

Parameters:
amount - the amount
See Also:
getAmount()

getAmount

public float getAmount()
Get the amount of effect.

Returns:
the amount
See Also:
setAmount(float)

setTurbulence

public void setTurbulence(float turbulence)
Specifies the turbulence of the effect.

Parameters:
turbulence - the turbulence of the effect.
See Also:
getTurbulence()

getTurbulence

public float getTurbulence()
Returns the turbulence of the effect.

Returns:
the turbulence of the effect.
See Also:
setTurbulence(float)

filter

public BufferedImage filter(BufferedImage src,
                            BufferedImage dst)
Specified by:
filter in interface BufferedImageOp
Overrides:
filter in class TransformFilter

toString

public String toString()
Overrides:
toString in class Object

filter

public BufferedImage filter(BufferedImage src,
                            Struct parameters)
                     throws PageException
Specified by:
filter in interface DynFiltering
Overrides:
filter in class TransformFilter
Throws:
PageException


Copyright © 2012 Railo