railo.runtime.img.filter
Class ChromaKeyFilter

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

public class ChromaKeyFilter
extends AbstractBufferedImageOp
implements DynFiltering

A filter which can be used to produce wipes by transferring the luma of a Destination image into the alpha channel of the source.


Constructor Summary
ChromaKeyFilter()
           
 
Method Summary
 BufferedImage filter(BufferedImage src, BufferedImage dst)
           
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 float getBTolerance()
           
 int getColor()
           
 float getHTolerance()
           
 float getSTolerance()
           
 void setBTolerance(float bTolerance)
           
 void setColor(int color)
           
 void setHTolerance(float hTolerance)
          Set the tolerance of the image in the range 0..1.
 void setSTolerance(float sTolerance)
           
 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

ChromaKeyFilter

public ChromaKeyFilter()
Method Detail

setHTolerance

public void setHTolerance(float hTolerance)
Set the tolerance of the image in the range 0..1. *arg tolerance The tolerance


getHTolerance

public float getHTolerance()

setSTolerance

public void setSTolerance(float sTolerance)

getSTolerance

public float getSTolerance()

setBTolerance

public void setBTolerance(float bTolerance)

getBTolerance

public float getBTolerance()

setColor

public void setColor(int color)

getColor

public int getColor()

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