|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.PointFilter
com.jhlabs.image.TritoneFilter
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.
Field Summary |
---|
Fields inherited from class com.jhlabs.image.PointFilter |
---|
canFilterIndexColorModel |
Constructor Summary | |
---|---|
TritoneFilter()
|
Method Summary | |
---|---|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.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. |
java.lang.String |
toString()
|
Methods inherited from class com.jhlabs.image.PointFilter |
---|
setDimensions |
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp |
---|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TritoneFilter()
Method Detail |
---|
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
filter
in interface java.awt.image.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
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |