railo.runtime.img.filter
Class ContrastFilter
java.lang.Object
railo.runtime.img.filter.AbstractBufferedImageOp
railo.runtime.img.filter.PointFilter
railo.runtime.img.filter.TransferFilter
railo.runtime.img.filter.ContrastFilter
- All Implemented Interfaces:
- BufferedImageOp, Cloneable, DynFiltering
public class ContrastFilter
- extends TransferFilter
- implements DynFiltering
A filter to change the brightness and contrast of an image.
ContrastFilter
public ContrastFilter()
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
filter
public BufferedImage filter(BufferedImage src,
Struct parameters)
throws PageException
- Specified by:
filter
in interface DynFiltering
- Overrides:
filter
in class TransferFilter
- Throws:
PageException
Copyright © 2012 Railo