Package com.jhlabs.image
Class SparkleFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.PointFilter
com.jhlabs.image.SparkleFilter
- All Implemented Interfaces:
BufferedImageOp,Cloneable
-
Field Summary
Fields inherited from class com.jhlabs.image.PointFilter
canFilterIndexColorModel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintfilterRGB(int x, int y, int rgb) intGet the amount of sparkle.intgetColor()intGet the radius of the effect.intintgetRays()floatfloatbooleanvoidsetAmount(int amount) Set the amount of sparkle.voidsetColor(int color) voidsetDimensions(int width, int height) voidsetLightOnly(boolean lightOnly) voidsetRadius(int radius) Set the radius of the effect.voidsetRandomness(int randomness) voidsetRays(int rays) voidsetRelativeCentreX(float relativeCentreX) voidsetRelativeCentreY(float relativeCentreY) toString()Methods inherited from class com.jhlabs.image.PointFilter
filterMethods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Constructor Details
-
SparkleFilter
public SparkleFilter()
-
-
Method Details
-
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
public int getAmount()Get the amount of sparkle.- Returns:
- the amount
- See Also:
-
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
public int getRadius()Get the radius of the effect.- Returns:
- the radius
- See Also:
-
setDimensions
public void setDimensions(int width, int height) - Overrides:
setDimensionsin classPointFilter
-
filterRGB
public int filterRGB(int x, int y, int rgb) - Specified by:
filterRGBin classPointFilter
-
setRelativeCentreX
public void setRelativeCentreX(float relativeCentreX) -
setRelativeCentreY
public void setRelativeCentreY(float relativeCentreY) -
getRelativeCentreX
public float getRelativeCentreX() -
getRelativeCentreY
public float getRelativeCentreY() -
isLightOnly
public boolean isLightOnly() -
setLightOnly
public void setLightOnly(boolean lightOnly) -
toString
-