com.jhlabs.image
Class TritoneFilter
- BufferedImageOp, Cloneable
public class TritoneFilter
A filter which performs a tritone conversion on an image. Given three colors for shadows, midtones and highlights,
it converts the image to grayscale and then applies a color mapping based on the colors.
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
- filter in interface PointFilter
getHighColor
public int getHighColor()
Get the high color.
getMidColor
public int getMidColor()
Get the mid color.
getShadowColor
public int getShadowColor()
Get the shadow color.
setHighColor
public void setHighColor(int highColor)
Set the high color.
highColor
- the high color
setMidColor
public void setMidColor(int midColor)
Set the mid color.
setShadowColor
public void setShadowColor(int shadowColor)
Set the shadow color.
shadowColor
- the shadow color
toString
public String toString()