com.jhlabs.image
Class ShapeFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.WholeImageFilter
com.jhlabs.image.ShapeFilter
- All Implemented Interfaces:
- java.awt.image.BufferedImageOp, java.io.Serializable, java.lang.Cloneable
public class ShapeFilter
- extends WholeImageFilter
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
colormap
protected Colormap colormap
ShapeFilter
public ShapeFilter()
setFactor
public void setFactor(float factor)
getFactor
public float getFactor()
setColormap
public void setColormap(Colormap colormap)
getColormap
public Colormap getColormap()
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()
filterPixels
protected int[] filterPixels(int width,
int height,
int[] inPixels,
java.awt.Rectangle transformedSpace)
- Specified by:
filterPixels
in class WholeImageFilter
distanceMap
public int distanceMap(int[] map,
int width,
int height)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object