com.jhlabs.image
Class StampFilter
- BufferedImageOp, Cloneable
A filter which produces a rubber-stamp type of effect by performing a thresholded blur.
BufferedImage | filter(BufferedImage src, BufferedImage dst)
|
int | filterRGB(int x, int y, int rgb)
|
int | getBlack() - Set the color to be used for pixels below the lower threshold.
|
float | getRadius() - Get the radius of the effect.
|
float | getSoftness() - Get the softness of the effect.
|
float | getThreshold() - Get the threshold value.
|
int | getWhite() - Get the color to be used for pixels above the upper threshold.
|
void | setBlack(int black) - Set the color to be used for pixels below the lower threshold.
|
void | setRadius(float radius) - Set the radius of the effect.
|
void | setSoftness(float softness) - Set the softness of the effect in the range 0..1.
|
void | setThreshold(float threshold) - Set the threshold value.
|
void | setWhite(int white) - Set the color to be used for pixels above the upper threshold.
|
String | toString()
|
StampFilter
public StampFilter()
Construct a StampFilter.
StampFilter
public StampFilter(float threshold)
Construct a StampFilter.
threshold
- the threshold value
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
- filter in interface PointFilter
getBlack
public int getBlack()
Set the color to be used for pixels below the lower threshold.
getRadius
public float getRadius()
Get the radius of the effect.
getSoftness
public float getSoftness()
Get the softness of the effect.
getThreshold
public float getThreshold()
Get the threshold value.
getWhite
public int getWhite()
Get the color to be used for pixels above the upper threshold.
setBlack
public void setBlack(int black)
Set the color to be used for pixels below the lower threshold.
setRadius
public void setRadius(float radius)
Set the radius of the effect.
setSoftness
public void setSoftness(float softness)
Set the softness of the effect in the range 0..1.
setThreshold
public void setThreshold(float threshold)
Set the threshold value.
threshold
- the threshold value
setWhite
public void setWhite(int white)
Set the color to be used for pixels above the upper threshold.
toString
public String toString()