railo.runtime.img.filter
Class OilFilter

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

public class OilFilter
extends WholeImageFilter
implements DynFiltering

A filter which produces a "oil-painting" effect.


Constructor Summary
OilFilter()
           
 
Method Summary
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 int getLevels()
          Get the number of levels for the effect.
 int getRange()
          Get the range of the effect in pixels.
 void setLevels(int levels)
          Set the number of levels for the effect.
 void setRange(int range)
          Set the range of the effect in pixels.
 String toString()
           
 
Methods inherited from class railo.runtime.img.filter.WholeImageFilter
filter
 
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

OilFilter

public OilFilter()
Method Detail

setRange

public void setRange(int range)
Set the range of the effect in pixels.

Parameters:
range - the range
See Also:
getRange()

getRange

public int getRange()
Get the range of the effect in pixels.

Returns:
the range
See Also:
setRange(int)

setLevels

public void setLevels(int levels)
Set the number of levels for the effect.

Parameters:
levels - the number of levels
See Also:
getLevels()

getLevels

public int getLevels()
Get the number of levels for the effect.

Returns:
the number of levels
See Also:
setLevels(int)

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 WholeImageFilter
Throws:
PageException


Copyright © 2012 Railo