Package com.jhlabs.image
Class ErodeAlphaFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.PointFilter
com.jhlabs.image.ErodeAlphaFilter
- All Implemented Interfaces:
BufferedImageOp,Cloneable
-
Field Summary
FieldsFields inherited from class com.jhlabs.image.PointFilter
canFilterIndexColorModel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter(BufferedImage src, BufferedImage dst) intfilterRGB(int x, int y, int rgb) floatfloatfloatvoidsetRadius(float radius) voidsetSoftness(float softness) voidsetThreshold(float threshold) toString()Methods inherited from class com.jhlabs.image.PointFilter
setDimensionsMethods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Field Details
-
radius
protected float radius
-
-
Constructor Details
-
ErodeAlphaFilter
public ErodeAlphaFilter() -
ErodeAlphaFilter
public ErodeAlphaFilter(float radius, float threshold, float softness)
-
-
Method Details
-
setRadius
public void setRadius(float radius) -
getRadius
public float getRadius() -
setThreshold
public void setThreshold(float threshold) -
getThreshold
public float getThreshold() -
setSoftness
public void setSoftness(float softness) -
getSoftness
public float getSoftness() -
filter
- Specified by:
filterin interfaceBufferedImageOp- Overrides:
filterin classPointFilter
-
filterRGB
public int filterRGB(int x, int y, int rgb) - Specified by:
filterRGBin classPointFilter
-
toString
-