com.jhlabs.image

Class ErodeAlphaFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class ErodeAlphaFilter
extends PointFilter

Field Summary

protected float
radius

Fields inherited from class com.jhlabs.image.PointFilter

canFilterIndexColorModel

Constructor Summary

ErodeAlphaFilter()
ErodeAlphaFilter(float radius, float threshold, float softness)

Method Summary

BufferedImage
filter(BufferedImage src, BufferedImage dst)
int
filterRGB(int x, int y, int rgb)
float
getRadius()
float
getSoftness()
float
getThreshold()
void
setRadius(float radius)
void
setSoftness(float softness)
void
setThreshold(float threshold)
String
toString()

Methods inherited from class com.jhlabs.image.PointFilter

filter, filterRGB, setDimensions

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRGB, getRenderingHints, setRGB

Field Details

radius

protected float radius

Constructor Details

ErodeAlphaFilter

public ErodeAlphaFilter()

ErodeAlphaFilter

public ErodeAlphaFilter(float radius,
                        float threshold,
                        float softness)

Method Details

filter

public BufferedImage filter(BufferedImage src,
                            BufferedImage dst)
Overrides:
filter in interface PointFilter

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Overrides:
filterRGB in interface PointFilter

getRadius

public float getRadius()

getSoftness

public float getSoftness()

getThreshold

public float getThreshold()

setRadius

public void setRadius(float radius)

setSoftness

public void setSoftness(float softness)

setThreshold

public void setThreshold(float threshold)

toString

public String toString()