public class GammaFilter extends TransferFilter implements DynFiltering
Constructor and Description |
---|
GammaFilter()
Construct a GammaFilter.
|
GammaFilter(float gamma)
Construct a GammaFilter.
|
GammaFilter(float rGamma,
float gGamma,
float bGamma)
Construct a GammaFilter.
|
Modifier and Type | Method and Description |
---|---|
BufferedImage |
filter(BufferedImage src,
Struct parameters) |
float |
getGamma()
Get the gamma level.
|
void |
setGamma(float gamma)
Set the gamma level.
|
void |
setGamma(float rGamma,
float gGamma,
float bGamma)
Set the gamma levels.
|
String |
toString() |
filter, filterRGB, getLUT
setDimensions
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
public GammaFilter()
public GammaFilter(float gamma)
gamma
- the gamma level for all RGB channelspublic GammaFilter(float rGamma, float gGamma, float bGamma)
rGamma
- the gamma level for the red channelgGamma
- the gamma level for the blue channelbGamma
- the gamma level for the green channelpublic void setGamma(float rGamma, float gGamma, float bGamma)
rGamma
- the gamma level for the red channelgGamma
- the gamma level for the blue channelbGamma
- the gamma level for the green channelgetGamma()
public void setGamma(float gamma)
gamma
- the gamma level for all RGB channelsgetGamma()
public float getGamma()
setGamma(float, float, float)
public BufferedImage filter(BufferedImage src, Struct parameters) throws PageException
filter
in interface DynFiltering
filter
in class TransferFilter
PageException
Copyright © 2015 Lucee