railo.runtime.img.filter
Class GainFilter
java.lang.Object
railo.runtime.img.filter.AbstractBufferedImageOp
railo.runtime.img.filter.PointFilter
railo.runtime.img.filter.TransferFilter
railo.runtime.img.filter.GainFilter
- All Implemented Interfaces:
- BufferedImageOp, Cloneable, DynFiltering
public class GainFilter
- extends TransferFilter
- implements DynFiltering
A filter which changes the gain and bias of an image - similar to ContrastFilter.
GainFilter
public GainFilter()
setGain
public void setGain(float gain)
- Set the gain.
- Parameters:
gain
- the gain- See Also:
getGain()
getGain
public float getGain()
- Get the gain.
- Returns:
- the gain
- See Also:
setGain(float)
setBias
public void setBias(float bias)
- Set the bias.
- Parameters:
bias
- the bias- See Also:
getBias()
getBias
public float getBias()
- Get the bias.
- Returns:
- the bias
- See Also:
setBias(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