railo.runtime.img.filter
Class CompositeFilter

java.lang.Object
  extended by railo.runtime.img.filter.AbstractBufferedImageOp
      extended by railo.runtime.img.filter.CompositeFilter
All Implemented Interfaces:
BufferedImageOp, Cloneable, DynFiltering

public class CompositeFilter
extends AbstractBufferedImageOp
implements DynFiltering

A filter which composites two images together with an optional transform.


Constructor Summary
CompositeFilter()
          Construct a CompositeFilter.
CompositeFilter(Composite composite)
          Construct a CompositeFilter.
CompositeFilter(Composite composite, AffineTransform transform)
          Construct a CompositeFilter.
 
Method Summary
 BufferedImage filter(BufferedImage src, BufferedImage dst)
           
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 Composite getComposite()
          Get the composite.
 AffineTransform getTransform()
          Get the transform.
 void setComposite(Composite composite)
          Set the composite.
 void setTransform(AffineTransform transform)
          Set the transform.
 String toString()
           
 
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

CompositeFilter

public CompositeFilter()
Construct a CompositeFilter.


CompositeFilter

public CompositeFilter(Composite composite)
Construct a CompositeFilter.

Parameters:
composite - the composite to use

CompositeFilter

public CompositeFilter(Composite composite,
                       AffineTransform transform)
Construct a CompositeFilter.

Parameters:
composite - the composite to use
transform - a transform for the composited image
Method Detail

setComposite

public void setComposite(Composite composite)
Set the composite.

Parameters:
composite - the composite to use
See Also:
getComposite()

getComposite

public Composite getComposite()
Get the composite.

Returns:
the composite to use
See Also:
setComposite(java.awt.Composite)

setTransform

public void setTransform(AffineTransform transform)
Set the transform.

Parameters:
transform - the transform to use
See Also:
getTransform()

getTransform

public AffineTransform getTransform()
Get the transform.

Returns:
the transform to use
See Also:
setTransform(java.awt.geom.AffineTransform)

filter

public BufferedImage filter(BufferedImage src,
                            BufferedImage dst)
Specified by:
filter in interface BufferedImageOp

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
Throws:
PageException


Copyright © 2012 Railo