BufferedImageOp, Cloneablepublic class SaturationFilter extends PointFilter
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
float |
amount |
canFilterIndexColorModel| 构造器 | 说明 |
|---|---|
SaturationFilter() |
Construct a SaturationFilter.
|
SaturationFilter(float amount) |
Construct a SaturationFilter.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
filterRGB(int x,
int y,
int rgb) |
|
float |
getAmount() |
Set the amount of saturation change.
|
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.
|
String |
toString() |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBfilter, setDimensionspublic SaturationFilter()
public SaturationFilter(float amount)
public void setAmount(float amount)
amount - the amountpublic float getAmount()
public int filterRGB(int x,
int y,
int rgb)
filterRGB 在类中 PointFilterCopyright © 2019. All rights reserved.