public class ContrastFilter extends TransferFilter implements DynFiltering
Constructor and Description |
---|
ContrastFilter() |
Modifier and Type | Method and Description |
---|---|
BufferedImage |
filter(BufferedImage src,
Struct parameters) |
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() |
filter, filterRGB, getLUT
setDimensions
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
public ContrastFilter()
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)
public BufferedImage filter(BufferedImage src, Struct parameters) throws PageException
filter
in interface DynFiltering
filter
in class TransferFilter
PageException
Copyright © 2015 Lucee