类 TritoneFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.PointFilter
-
- org.meteoinfo.image.filter.TritoneFilter
-
- 所有已实现的接口:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class TritoneFilter extends PointFilter
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.
-
-
字段概要
-
从类继承的字段 org.meteoinfo.image.filter.PointFilter
canFilterIndexColorModel
-
-
构造器概要
构造器 构造器 说明 TritoneFilter()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.awt.image.BufferedImagefilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)intfilterRGB(int x, int y, int rgb)intgetHighColor()Get the high color.intgetMidColor()Get the mid color.intgetShadowColor()Get the shadow color.voidsetHighColor(int highColor)Set the high color.voidsetMidColor(int midColor)Set the mid color.voidsetShadowColor(int shadowColor)Set the shadow color.java.lang.StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.PointFilter
setDimensions
-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
方法详细资料
-
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)- 指定者:
filter在接口中java.awt.image.BufferedImageOp- 覆盖:
filter在类中PointFilter
-
filterRGB
public int filterRGB(int x, int y, int rgb)- 指定者:
filterRGB在类中PointFilter
-
setShadowColor
public void setShadowColor(int shadowColor)
Set the shadow color.- 参数:
shadowColor- the shadow color- 另请参阅:
getShadowColor()
-
getShadowColor
public int getShadowColor()
Get the shadow color.- 返回:
- the shadow color
- 另请参阅:
setShadowColor(int)
-
setMidColor
public void setMidColor(int midColor)
Set the mid color.- 参数:
midColor- the mid color
-
getMidColor
public int getMidColor()
Get the mid color.- 返回:
- the mid color
-
setHighColor
public void setHighColor(int highColor)
Set the high color.- 参数:
highColor- the high color
-
getHighColor
public int getHighColor()
Get the high color.- 返回:
- the high color
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中java.lang.Object
-
-