railo.runtime.img.filter
Class ContrastFilter

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.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.


Constructor Summary
ContrastFilter()
           
 
Method Summary
 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()
           
 
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

ContrastFilter

public ContrastFilter()
Method Detail

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