|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.PointFilter
com.jhlabs.image.StampFilter
public class StampFilter
A filter which produces a rubber-stamp type of effect by performing a thresholded blur.
Field Summary |
---|
Fields inherited from class com.jhlabs.image.PointFilter |
---|
canFilterIndexColorModel |
Constructor Summary | |
---|---|
StampFilter()
Construct a StampFilter. |
|
StampFilter(float threshold)
Construct a StampFilter. |
Method Summary | |
---|---|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.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. |
java.lang.String |
toString()
|
Methods inherited from class com.jhlabs.image.PointFilter |
---|
setDimensions |
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp |
---|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StampFilter()
public StampFilter(float threshold)
threshold
- the threshold valueMethod Detail |
---|
public void setRadius(float radius)
radius
- the radiusgetRadius()
public float getRadius()
setRadius(float)
public void setThreshold(float threshold)
threshold
- the threshold valuegetThreshold()
public float getThreshold()
setThreshold(float)
public void setSoftness(float softness)
softness
- the softnessgetSoftness()
public float getSoftness()
setSoftness(float)
public void setWhite(int white)
white
- the colorgetWhite()
public int getWhite()
setWhite(int)
public void setBlack(int black)
black
- the colorgetBlack()
public int getBlack()
setBlack(int)
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
filter
in interface java.awt.image.BufferedImageOp
filter
in class PointFilter
public int filterRGB(int x, int y, int rgb)
filterRGB
in class PointFilter
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |