public class ContrastFilter extends TransferFilter
Modifier and Type | Field and Description |
---|---|
private float |
brightness |
private float |
contrast |
bTable, gTable, initialized, rTable
canFilterIndexColorModel
Constructor and Description |
---|
ContrastFilter() |
Modifier and Type | Method and Description |
---|---|
float |
getBrightness()
Get the filter brightness.
|
float |
getContrast()
Get the filter contrast.
|
void |
setBrightness(float brightness)
Set the filter brightness.
|
void |
setContrast(float contrast)
Set the filter contrast.
|
String |
toString() |
protected float |
transferFunction(float f) |
filter, filterRGB, getLUT, initialize, makeTable
setDimensions
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
private float brightness
private float contrast
public ContrastFilter()
protected float transferFunction(float f)
transferFunction
in class TransferFilter
public void setBrightness(float brightness)
brightness
- the brightness in the range 0 to 1getBrightness()
public float getBrightness()
setBrightness(float)
public void setContrast(float contrast)
contrast
- the contrast in the range 0 to 1getContrast()
public float getContrast()
setContrast(float)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses