railo.runtime.img.filter
Class SparkleFilter

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

public class SparkleFilter
extends PointFilter
implements DynFiltering


Constructor Summary
SparkleFilter()
           
 
Method Summary
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 int filterRGB(int x, int y, int rgb)
           
 int getAmount()
          Get the amount of sparkle.
 int getColor()
           
 int getRadius()
          Get the radius of the effect.
 int getRandomness()
           
 int getRays()
           
 void setAmount(int amount)
          Set the amount of sparkle.
 void setColor(int color)
           
 void setDimensions(int width, int height)
           
 void setRadius(int radius)
          Set the radius of the effect.
 void setRandomness(int randomness)
           
 void setRays(int rays)
           
 String toString()
           
 
Methods inherited from class railo.runtime.img.filter.PointFilter
filter
 
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

SparkleFilter

public SparkleFilter()
Method Detail

setColor

public void setColor(int color)

getColor

public int getColor()

setRandomness

public void setRandomness(int randomness)

getRandomness

public int getRandomness()

setAmount

public void setAmount(int amount)
Set the amount of sparkle.

Parameters:
amount - the amount
See Also:
getAmount()

getAmount

public int getAmount()
Get the amount of sparkle.

Returns:
the amount
See Also:
setAmount(int)

setRays

public void setRays(int rays)

getRays

public int getRays()

setRadius

public void setRadius(int radius)
Set the radius of the effect.

Parameters:
radius - the radius
See Also:
getRadius()

getRadius

public int getRadius()
Get the radius of the effect.

Returns:
the radius
See Also:
setRadius(int)

setDimensions

public void setDimensions(int width,
                          int height)
Overrides:
setDimensions 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