Package com.jhlabs.image
Class ErodeAlphaFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.PointFilter
-
- com.jhlabs.image.ErodeAlphaFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class ErodeAlphaFilter extends PointFilter
-
-
Field Summary
Fields Modifier and Type Field Description protected floatradius-
Fields inherited from class com.jhlabs.image.PointFilter
canFilterIndexColorModel
-
-
Constructor Summary
Constructors Constructor Description ErodeAlphaFilter()ErodeAlphaFilter(float radius, float threshold, float softness)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagefilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)intfilterRGB(int x, int y, int rgb)floatgetRadius()floatgetSoftness()floatgetThreshold()voidsetRadius(float radius)voidsetSoftness(float softness)voidsetThreshold(float threshold)java.lang.StringtoString()-
Methods inherited from class com.jhlabs.image.PointFilter
setDimensions
-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
-
-
-
-
Method Detail
-
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
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)- Specified by:
filterin interfacejava.awt.image.BufferedImageOp- Overrides:
filterin classPointFilter
-
filterRGB
public int filterRGB(int x, int y, int rgb)- Specified by:
filterRGBin classPointFilter
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-