Package com.jhlabs.image
Class StampFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.PointFilter
com.jhlabs.image.StampFilter
- 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) int
filterRGB
(int x, int y, int rgb) int
getBlack()
float
float
float
int
getWhite()
void
setBlack
(int black) void
setRadius
(float radius) void
setSoftness
(float softness) void
setThreshold
(float threshold) void
setWhite
(int white) 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
-
Field Details
-
radius
protected float radius
-
-
Constructor Details
-
StampFilter
public StampFilter() -
StampFilter
public StampFilter(float threshold)
-
-
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() -
setWhite
public void setWhite(int white) -
getWhite
public int getWhite() -
setBlack
public void setBlack(int black) -
getBlack
public int getBlack() -
filter
- Specified by:
filter
in interfaceBufferedImageOp
- Overrides:
filter
in classPointFilter
-
filterRGB
public int filterRGB(int x, int y, int rgb) - Specified by:
filterRGB
in classPointFilter
-
toString
-