public class ContrastFilter extends TransferFilter
bTable, gTable, initialized, rTablecanFilterIndexColorModel| Constructor and Description |
|---|
ContrastFilter()
Constructs new contrast filter with default settings.
|
ContrastFilter(float brightness,
float contrast)
Constructs new contrast filter.
|
| 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, makeTablesetDimensionscreateCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBpublic ContrastFilter()
public ContrastFilter(float brightness,
float contrast)
brightness - the brightness in the range 0 to 1contrast - the contrast in the range 0 to 1protected float transferFunction(float f)
transferFunction in class TransferFilterpublic 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)Copyright © 2020. All rights reserved.