com.jhlabs.image
Class ContrastFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.PointFilter
com.jhlabs.image.TransferFilter
com.jhlabs.image.ContrastFilter
- All Implemented Interfaces:
- BufferedImageOp, Cloneable
public class ContrastFilter
- extends TransferFilter
A filter to change the brightness and contrast of an image.
ContrastFilter
public ContrastFilter()
transferFunction
protected float transferFunction(float f)
- Overrides:
transferFunction in class TransferFilter
setBrightness
public void setBrightness(float brightness)
- Set the filter brightness.
- Parameters:
brightness - the brightness in the range 0 to 1- See Also:
getBrightness()
getBrightness
public float getBrightness()
- Get the filter brightness.
- Returns:
- the brightness in the range 0 to 1
- See Also:
setBrightness(float)
setContrast
public void setContrast(float contrast)
- Set the filter contrast.
- Parameters:
contrast - the contrast in the range 0 to 1- See Also:
getContrast()
getContrast
public float getContrast()
- Get the filter contrast.
- Returns:
- the contrast in the range 0 to 1
- See Also:
setContrast(float)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012. All Rights Reserved.