railo.runtime.img.filter
Class DissolveFilter

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

public class DissolveFilter
extends PointFilter
implements DynFiltering

A filter which "dissolves" an image by thresholding the alpha channel with random numbers.


Constructor Summary
DissolveFilter()
           
 
Method Summary
 BufferedImage filter(BufferedImage src, BufferedImage dst)
           
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 int filterRGB(int x, int y, int rgb)
           
 float getDensity()
          Get the density of the image.
 float getSoftness()
          Get the softness of the dissolve.
 void setDensity(float density)
          Set the density of the image in the range 0..1.
 void setSoftness(float softness)
          Set the softness of the dissolve in the range 0..1.
 String toString()
           
 
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

DissolveFilter

public DissolveFilter()
Method Detail

setDensity

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

Parameters:
density - the density
See Also:
getDensity()

getDensity

public float getDensity()
Get the density of the image.

Returns:
the density
See Also:
setDensity(float)

setSoftness

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

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

getSoftness

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

Returns:
the softness
See Also:
setSoftness(float)

filter

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

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Specified by:
filterRGB in class PointFilter

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


Copyright © 2012 Railo