Package com.jhlabs.image
Class RaysFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.MotionBlurOp
com.jhlabs.image.RaysFilter
- All Implemented Interfaces:
MotionBlur
,BufferedImageOp
,Cloneable
A filter which produces the effect of light rays shining out of an image.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter
(BufferedImage src, BufferedImage dst) Get the colormap to be used for the filter.float
Get the opacity of the rays.boolean
Get whether to render only the rays.float
Get the strength of the rays.float
Get the threshold value.void
setColormap
(Colormap colormap) Set the colormap to be used for the filter.void
setOpacity
(float opacity) Set the opacity of the rays.void
setRaysOnly
(boolean raysOnly) Set whether to render only the rays.void
setStrength
(float strength) Set the strength of the rays.void
setThreshold
(float threshold) Set the threshold value.toString()
Methods inherited from class com.jhlabs.image.MotionBlurOp
getAngle, getCentre, getCentreX, getCentreY, getDistance, getRotation, getZoom, setAngle, setCentre, setCentreX, setCentreY, setDistance, setRotation, setZoom
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.awt.image.BufferedImageOp
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints
-
Constructor Details
-
RaysFilter
public RaysFilter()
-
-
Method Details
-
setOpacity
public void setOpacity(float opacity) Set the opacity of the rays.- Parameters:
opacity
- the opacity.- See Also:
-
getOpacity
public float getOpacity()Get the opacity of the rays.- Returns:
- the opacity.
- See Also:
-
setThreshold
public void setThreshold(float threshold) Set the threshold value.- Parameters:
threshold
- the threshold value- See Also:
-
getThreshold
public float getThreshold()Get the threshold value.- Returns:
- the threshold value
- See Also:
-
setStrength
public void setStrength(float strength) Set the strength of the rays.- Parameters:
strength
- the strength.- See Also:
-
getStrength
public float getStrength()Get the strength of the rays.- Returns:
- the strength.
- See Also:
-
setRaysOnly
public void setRaysOnly(boolean raysOnly) Set whether to render only the rays.- Parameters:
raysOnly
- true to render rays only.- See Also:
-
getRaysOnly
public boolean getRaysOnly()Get whether to render only the rays.- Returns:
- true to render rays only.
- See Also:
-
setColormap
Set the colormap to be used for the filter.- Parameters:
colormap
- the colormap- See Also:
-
getColormap
Get the colormap to be used for the filter.- Returns:
- the colormap
- See Also:
-
filter
- Specified by:
filter
in interfaceBufferedImageOp
- Overrides:
filter
in classMotionBlurOp
-
toString
- Overrides:
toString
in classMotionBlurOp
-