|
||||||||||
| 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 | |
|---|---|
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()
|
| 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 BufferedImage filter(BufferedImage src,
BufferedImage dst)
filter in interface BufferedImageOpfilter in class PointFilter
public int filterRGB(int x,
int y,
int rgb)
filterRGB in class PointFilterpublic void setShadowColor(int shadowColor)
shadowColor - the shadow colorgetShadowColor()public int getShadowColor()
setShadowColor(int)public void setMidColor(int midColor)
midColor - the mid color#getmidColorpublic int getMidColor()
#setmidColorpublic void setHighColor(int highColor)
highColor - the high color#gethighColorpublic int getHighColor()
#sethighColorpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||