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.floatGet the opacity of the rays.booleanGet whether to render only the rays.floatGet the strength of the rays.floatGet the threshold value.voidsetColormap(Colormap colormap) Set the colormap to be used for the filter.voidsetOpacity(float opacity) Set the opacity of the rays.voidsetRaysOnly(boolean raysOnly) Set whether to render only the rays.voidsetStrength(float strength) Set the strength of the rays.voidsetThreshold(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, setZoomMethods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
filterin interfaceBufferedImageOp- Overrides:
filterin classMotionBlurOp
-
toString
- Overrides:
toStringin classMotionBlurOp
-