Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.PointFilter
com.jhlabs.image.TransferFilter
com.jhlabs.image.ContrastFilter
public class ContrastFilter
extends TransferFilter
Field Summary |
Fields inherited from class com.jhlabs.image.TransferFilter | |
bTable , gTable , initialized , rTable |
Fields inherited from class com.jhlabs.image.PointFilter | |
canFilterIndexColorModel |
Method Summary | |
float |
|
float |
|
void |
|
void |
|
String |
|
protected float |
|
Methods inherited from class com.jhlabs.image.TransferFilter | |
filter , filterRGB , getLUT , initialize , makeTable , transferFunction |
Methods inherited from class com.jhlabs.image.PointFilter | |
filter , filterRGB , setDimensions |
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp | |
clone , createCompatibleDestImage , getBounds2D , getPoint2D , getRGB , getRenderingHints , setRGB |
public float getBrightness()
Get the filter brightness.
- Returns:
- the brightness in the range 0 to 1
- See Also:
setBrightness(float)
public float getContrast()
Get the filter contrast.
- Returns:
- the contrast in the range 0 to 1
- See Also:
setContrast(float)
public void setBrightness(float brightness)
Set the filter brightness.
- Parameters:
brightness
- the brightness in the range 0 to 1
- See Also:
getBrightness()
public void setContrast(float contrast)
Set the filter contrast.
- Parameters:
contrast
- the contrast in the range 0 to 1
- See Also:
getContrast()
public String toString()
protected float transferFunction(float f)
- Overrides:
- transferFunction in interface TransferFilter