public class SaturationFilter extends PointFilter
| Modifier and Type | Field and Description |
|---|---|
float |
amount |
canFilterIndexColorModel| Constructor and Description |
|---|
SaturationFilter()
Construct a SaturationFilter.
|
SaturationFilter(float amount)
Construct a SaturationFilter.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
toString() |
filter, setDimensionsclone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColorpublic SaturationFilter()
public SaturationFilter(float amount)
amount - The amount of saturation change.public void setAmount(float amount)
amount - the amountgetAmount()public float getAmount()
setAmount(float)public int filterRGB(int x,
int y,
int rgb)
filterRGB in class PointFilterpublic java.lang.String toString()
toString in class java.lang.Object