railo.runtime.img.filter
Class GainFilter

java.lang.Object
  extended by railo.runtime.img.filter.AbstractBufferedImageOp
      extended by railo.runtime.img.filter.PointFilter
          extended by railo.runtime.img.filter.TransferFilter
              extended by 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.


Constructor Summary
GainFilter()
           
 
Method Summary
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 float getBias()
          Get the bias.
 float getGain()
          Get the gain.
 void setBias(float bias)
          Set the bias.
 void setGain(float gain)
          Set the gain.
 String toString()
           
 
Methods inherited from class railo.runtime.img.filter.TransferFilter
filter, filterRGB, getLUT
 
Methods inherited from class railo.runtime.img.filter.PointFilter
setDimensions
 
Methods inherited from class railo.runtime.img.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GainFilter

public GainFilter()
Method Detail

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