railo.runtime.img.filter
Class HalftoneFilter

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

public class HalftoneFilter
extends AbstractBufferedImageOp
implements DynFiltering

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


Constructor Summary
HalftoneFilter()
           
 
Method Summary
 BufferedImage filter(BufferedImage src, BufferedImage dst)
           
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 float getDensity()
           
 boolean getInvert()
           
 BufferedImage getMask()
           
 float getSoftness()
          Get the softness of the effect.
 void setDensity(float density)
          Set the density of the image in the range 0..1.
 void setInvert(boolean invert)
           
 void setMask(BufferedImage mask)
           
 void setSoftness(float softness)
          Set the softness of the effect in the range 0..1.
 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

HalftoneFilter

public HalftoneFilter()
Method Detail

setDensity

public void setDensity(float density)
Set the density of the image in the range 0..1. *arg density The density


getDensity

public float getDensity()

setSoftness

public void setSoftness(float softness)
Set the softness of the effect in the range 0..1.

Parameters:
softness - the softness
See Also:
getSoftness()

getSoftness

public float getSoftness()
Get the softness of the effect.

Returns:
the softness
See Also:
setSoftness(float)

setMask

public void setMask(BufferedImage mask)

getMask

public BufferedImage getMask()

setInvert

public void setInvert(boolean invert)

getInvert

public boolean getInvert()

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