类 SaturationFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.PointFilter
-
- org.meteoinfo.image.filter.SaturationFilter
-
- 所有已实现的接口:
BufferedImageOp,Cloneable
public class SaturationFilter extends PointFilter
A filter to change the saturation of an image. This works by calculating a grayscale version of the image and then extrapolating away from it.
-
-
字段概要
字段 修饰符和类型 字段 说明 floatamount-
从类继承的字段 org.meteoinfo.image.filter.PointFilter
canFilterIndexColorModel
-
-
构造器概要
构造器 构造器 说明 SaturationFilter()Construct a SaturationFilter.SaturationFilter(float amount)Construct a SaturationFilter.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intfilterRGB(int x, int y, int rgb)floatgetAmount()Set the amount of saturation change.voidsetAmount(float amount)Set the amount of saturation change. 1 leaves the image unchanged, values between 0 and 1 desaturate, 0 completely desaturates it and values above 1 increase the saturation.StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.PointFilter
filter, setDimensions
-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
方法详细资料
-
setAmount
public void setAmount(float amount)
Set the amount of saturation change. 1 leaves the image unchanged, values between 0 and 1 desaturate, 0 completely desaturates it and values above 1 increase the saturation.- 参数:
amount- the amount
-
getAmount
public float getAmount()
Set the amount of saturation change.- 返回:
- the amount
-
filterRGB
public int filterRGB(int x, int y, int rgb)- 指定者:
filterRGB在类中PointFilter
-
-