BufferedImageOp, Cloneablepublic class StampFilter extends PointFilter
canFilterIndexColorModel| 构造器 | 说明 |
|---|---|
StampFilter() |
Construct a StampFilter.
|
StampFilter(float threshold) |
Construct a StampFilter.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
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() |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBsetDimensionspublic StampFilter()
public StampFilter(float threshold)
threshold - the threshold valuepublic void setRadius(float radius)
radius - the radius min-value 0getRadius()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 softness min-value 0 max-value 1getSoftness()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 BufferedImage filter(BufferedImage src, BufferedImage dst)
filter 在接口中 BufferedImageOpfilter 在类中 PointFilterpublic int filterRGB(int x,
int y,
int rgb)
filterRGB 在类中 PointFilterCopyright © 2019. All rights reserved.