Package com.jhlabs.image
Class FlareFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.PointFilter
-
- com.jhlabs.image.FlareFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp
,java.lang.Cloneable
public class FlareFilter extends PointFilter
An experimental filter for rendering lens flares.
-
-
Field Summary
-
Fields inherited from class com.jhlabs.image.PointFilter
canFilterIndexColorModel
-
-
Constructor Summary
Constructors Constructor Description FlareFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
filterRGB(int x, int y, int rgb)
float
getBaseAmount()
java.awt.geom.Point2D
getCentre()
int
getColor()
float
getRadius()
Get the radius of the effect.float
getRayAmount()
float
getRingAmount()
float
getRingWidth()
void
setBaseAmount(float baseAmount)
void
setCentre(java.awt.geom.Point2D centre)
void
setColor(int color)
void
setDimensions(int width, int height)
void
setRadius(float radius)
Set the radius of the effect.void
setRayAmount(float rayAmount)
void
setRingAmount(float ringAmount)
void
setRingWidth(float ringWidth)
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()
-
setRingWidth
public void setRingWidth(float ringWidth)
-
getRingWidth
public float getRingWidth()
-
setBaseAmount
public void setBaseAmount(float baseAmount)
-
getBaseAmount
public float getBaseAmount()
-
setRingAmount
public void setRingAmount(float ringAmount)
-
getRingAmount
public float getRingAmount()
-
setRayAmount
public void setRayAmount(float rayAmount)
-
getRayAmount
public float getRayAmount()
-
setCentre
public void setCentre(java.awt.geom.Point2D centre)
-
getCentre
public java.awt.geom.Point2D getCentre()
-
setRadius
public void setRadius(float radius)
Set the radius of the effect.- Parameters:
radius
- the radius, min-value 0,- See Also:
getRadius()
-
getRadius
public float getRadius()
Get the radius of the effect.- Returns:
- the radius
- See Also:
setRadius(float)
-
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
-
-