Package com.jhlabs.image
Class ShapeFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.WholeImageFilter
com.jhlabs.image.ShapeFilter
- All Implemented Interfaces:
BufferedImageOp
,Serializable
,Cloneable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
protected Colormap
static final int
static final int
Fields inherited from class com.jhlabs.image.WholeImageFilter
originalSpace, transformedSpace
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
distanceMap
(int[] map, int width, int height) protected int[]
filterPixels
(int width, int height, int[] inPixels, Rectangle transformedSpace) float
boolean
boolean
getMerge()
int
getType()
boolean
void
setColormap
(Colormap colormap) void
setFactor
(float factor) void
setInvert
(boolean invert) void
setMerge
(boolean merge) void
setType
(int type) void
setUseAlpha
(boolean useAlpha) toString()
Methods inherited from class com.jhlabs.image.WholeImageFilter
filter, transformSpace
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Field Details
-
LINEAR
public static final int LINEAR- See Also:
-
CIRCLE_UP
public static final int CIRCLE_UP- See Also:
-
CIRCLE_DOWN
public static final int CIRCLE_DOWN- See Also:
-
SMOOTH
public static final int SMOOTH- See Also:
-
colormap
-
-
Constructor Details
-
ShapeFilter
public ShapeFilter()
-
-
Method Details
-
setFactor
public void setFactor(float factor) -
getFactor
public float getFactor() -
setColormap
-
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
- Specified by:
filterPixels
in classWholeImageFilter
-
distanceMap
public int distanceMap(int[] map, int width, int height) -
toString
-