public class HalftoneFilter extends AbstractBufferedImageOp
Constructor and Description |
---|
HalftoneFilter() |
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst) |
boolean |
getInvert() |
java.awt.image.BufferedImage |
getMask()
Get the halftone mask.
|
boolean |
getMonochrome()
Get whether to do monochrome halftoning.
|
float |
getSoftness()
Get the softness of the effect.
|
void |
setInvert(boolean invert) |
void |
setMask(java.awt.image.BufferedImage mask)
Set the halftone mask.
|
void |
setMonochrome(boolean monochrome)
Set whether to do monochrome halftoning.
|
void |
setSoftness(float softness)
Set the softness of the effect in the range 0..1.
|
java.lang.String |
toString() |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
public void setSoftness(float softness)
softness
- the softness. min-value: 0, max-value: 1getSoftness()
public float getSoftness()
setSoftness(float)
public void setMask(java.awt.image.BufferedImage mask)
mask
- the maskgetMask()
public java.awt.image.BufferedImage getMask()
setMask(BufferedImage)
public void setInvert(boolean invert)
public boolean getInvert()
public void setMonochrome(boolean monochrome)
monochrome
- true for monochrome halftoninggetMonochrome()
public boolean getMonochrome()
setMonochrome(boolean)
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
public java.lang.String toString()
toString
in class java.lang.Object