public class ContrastFilter extends TransferFilter
bTable, gTable, initialized, rTable
canFilterIndexColorModel
filterListener
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, createCompatibleDestImage, filterDone, filterInitialize, filterProgress, filterStart, getBounds2D, getMetaData, getPoint2D, getRenderingHints, getRGB, setFilterListener, setRGB
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)
Copyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.