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.
|
String |
toString() |
filter, setDimensions
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
public float amount
public 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
in class PointFilter
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses