public class HalftoneFilter extends AbstractBufferedImageOp
filterListener
Constructor and Description |
---|
HalftoneFilter() |
Modifier and Type | Method and Description |
---|---|
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() |
clone, createCompatibleDestImage, createCompatibleDestImage, filterDone, filterInitialize, filterProgress, filterStart, getBounds2D, getMetaData, getPoint2D, getRenderingHints, getRGB, setFilterListener, setRGB
public void setSoftness(float softness)
softness
- the softnessgetSoftness()
public float getSoftness()
setSoftness(float)
public void setMask(BufferedImage mask)
mask
- the maskgetMask()
public BufferedImage getMask()
setMask(java.awt.image.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 BufferedImage filter(BufferedImage src, BufferedImage dst)
filter
in interface BufferedImageOp
filter
in class AbstractBufferedImageOp
Copyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.