com.jhlabs.image
Class HalftoneFilter
- BufferedImageOp, Cloneable
public class HalftoneFilter
A filter which uses a another image as a ask to produce a halftoning effect.
BufferedImage | filter(BufferedImage src, BufferedImage dst)
|
boolean | getInvert()
|
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(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.
|
String | toString()
|
HalftoneFilter
public HalftoneFilter()
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
getInvert
public boolean getInvert()
getMask
public BufferedImage getMask()
Get the halftone mask.
getMonochrome
public boolean getMonochrome()
Get whether to do monochrome halftoning.
- true for monochrome halftoning
getSoftness
public float getSoftness()
Get the softness of the effect.
setInvert
public void setInvert(boolean invert)
setMask
public void setMask(BufferedImage mask)
Set the halftone mask.
setMonochrome
public void setMonochrome(boolean monochrome)
Set whether to do monochrome halftoning.
monochrome
- true for monochrome halftoning
setSoftness
public void setSoftness(float softness)
Set the softness of the effect in the range 0..1.
toString
public String toString()