Package com.jhlabs.image
Class SparkleFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.PointFilter
-
- com.jhlabs.image.SparkleFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp
,java.lang.Cloneable
public class SparkleFilter extends PointFilter
-
-
Field Summary
-
Fields inherited from class com.jhlabs.image.PointFilter
canFilterIndexColorModel
-
-
Constructor Summary
Constructors Constructor Description SparkleFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
java.lang.String
toString()
-
Methods inherited from class com.jhlabs.image.PointFilter
filter
-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
-
-
-
-
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. The minimum value is 0, the maximum value is 1.- 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 min-value: 0- 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 classPointFilter
-
filterRGB
public int filterRGB(int x, int y, int rgb)
- Specified by:
filterRGB
in classPointFilter
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-