com.jhlabs.image

Class SparkleFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class SparkleFilter
extends PointFilter

Field Summary

Fields inherited from class com.jhlabs.image.PointFilter

canFilterIndexColorModel

Constructor Summary

SparkleFilter()

Method Summary

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 com.jhlabs.image.PointFilter

filter, filterRGB, setDimensions

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRGB, getRenderingHints, setRGB

Constructor Details

SparkleFilter

public SparkleFilter()

Method Details

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Overrides:
filterRGB in interface PointFilter

getAmount

public int getAmount()
Get the amount of sparkle.
Returns:
the amount

getColor

public int getColor()

getRadius

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

getRandomness

public int getRandomness()

getRays

public int getRays()

setAmount

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

setColor

public void setColor(int color)

setDimensions

public void setDimensions(int width,
                          int height)
Overrides:
setDimensions in interface PointFilter

setRadius

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

setRandomness

public void setRandomness(int randomness)

setRays

public void setRays(int rays)

toString

public String toString()