railo.runtime.img.filter
Class ShapeFilter

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

public class ShapeFilter
extends WholeImageFilter
implements DynFiltering


Field Summary
static int CIRCLE_DOWN
           
static int CIRCLE_UP
           
static int LINEAR
           
static int SMOOTH
           
 
Constructor Summary
ShapeFilter()
           
 
Method Summary
 int distanceMap(int[] map, int width, int height)
           
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 Colormap getColormap()
          Get the colormap to be used for the filter.
 float getFactor()
           
 boolean getInvert()
           
 boolean getMerge()
           
 int getType()
           
 boolean getUseAlpha()
           
 void setColormap(Colormap colormap)
          Set the colormap to be used for the filter.
 void setFactor(float factor)
           
 void setInvert(boolean invert)
           
 void setMerge(boolean merge)
           
 void setType(int type)
           
 void setUseAlpha(boolean useAlpha)
           
 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
 

Field Detail

LINEAR

public static final int LINEAR
See Also:
Constant Field Values

CIRCLE_UP

public static final int CIRCLE_UP
See Also:
Constant Field Values

CIRCLE_DOWN

public static final int CIRCLE_DOWN
See Also:
Constant Field Values

SMOOTH

public static final int SMOOTH
See Also:
Constant Field Values
Constructor Detail

ShapeFilter

public ShapeFilter()
Method Detail

setFactor

public void setFactor(float factor)

getFactor

public float getFactor()

setColormap

public void setColormap(Colormap colormap)
Set the colormap to be used for the filter.

Parameters:
colormap - the colormap
See Also:
getColormap()

getColormap

public Colormap getColormap()
Get the colormap to be used for the filter.

Returns:
the colormap
See Also:
setColormap(railo.runtime.img.filter.Colormap)

setUseAlpha

public void setUseAlpha(boolean useAlpha)

getUseAlpha

public boolean getUseAlpha()

setType

public void setType(int type)

getType

public int getType()

setInvert

public void setInvert(boolean invert)

getInvert

public boolean getInvert()

setMerge

public void setMerge(boolean merge)

getMerge

public boolean getMerge()

distanceMap

public int distanceMap(int[] map,
                       int width,
                       int height)

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