public class TritoneFilter extends PointFilter
Modifier and Type | Field and Description |
---|---|
private int |
highColor |
private int[] |
lut |
private int |
midColor |
private int |
shadowColor |
canFilterIndexColorModel
Constructor and Description |
---|
TritoneFilter() |
Modifier and Type | Method and Description |
---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst) |
int |
filterRGB(int x,
int y,
int rgb) |
int |
getHighColor()
Get the high color.
|
int |
getMidColor()
Get the mid color.
|
int |
getShadowColor()
Get the shadow color.
|
void |
setHighColor(int highColor)
Set the high color.
|
void |
setMidColor(int midColor)
Set the mid color.
|
void |
setShadowColor(int shadowColor)
Set the shadow color.
|
String |
toString() |
setDimensions
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
private int shadowColor
private int midColor
private int highColor
private int[] lut
public TritoneFilter()
public BufferedImage filter(BufferedImage src, BufferedImage dst)
filter
in interface BufferedImageOp
filter
in class PointFilter
public int filterRGB(int x, int y, int rgb)
filterRGB
in class PointFilter
public void setShadowColor(int shadowColor)
shadowColor
- the shadow colorgetShadowColor()
public int getShadowColor()
setShadowColor(int)
public void setMidColor(int midColor)
midColor
- the mid color#getmidColor
public int getMidColor()
#setmidColor
public void setHighColor(int highColor)
highColor
- the high color#gethighColor
public int getHighColor()
#sethighColor
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses