Package com.jhlabs.image
Class RaysFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.MotionBlurOp
-
- com.jhlabs.image.RaysFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class RaysFilter extends MotionBlurOp
A filter which produces the effect of light rays shining out of an image.
-
-
Constructor Summary
Constructors Constructor Description RaysFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagefilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)ColormapgetColormap()Get the colormap to be used for the filter.floatgetOpacity()Get the opacity of the rays.booleangetRaysOnly()Get whether to render only the rays.floatgetStrength()Get the strength of the rays.floatgetThreshold()Get 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.java.lang.StringtoString()-
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, stringToColor
-
-
-
-
Method Detail
-
setOpacity
public void setOpacity(float opacity)
Set the opacity of the rays.- Parameters:
opacity- the opacity.- See Also:
getOpacity()
-
getOpacity
public float getOpacity()
Get the opacity of the rays.- Returns:
- the opacity.
- See Also:
setOpacity(float)
-
setThreshold
public void setThreshold(float threshold)
Set the threshold value.- Parameters:
threshold- the threshold value- See Also:
getThreshold()
-
getThreshold
public float getThreshold()
Get the threshold value.- Returns:
- the threshold value
- See Also:
setThreshold(float)
-
setStrength
public void setStrength(float strength)
Set the strength of the rays.- Parameters:
strength- the strength.- See Also:
getStrength()
-
getStrength
public float getStrength()
Get the strength of the rays.- Returns:
- the strength.
- See Also:
setStrength(float)
-
setRaysOnly
public void setRaysOnly(boolean raysOnly)
Set whether to render only the rays.- Parameters:
raysOnly- true to render rays only.- See Also:
getRaysOnly()
-
getRaysOnly
public boolean getRaysOnly()
Get whether to render only the rays.- Returns:
- true to render rays only.
- See Also:
setRaysOnly(boolean)
-
setColormap
public void setColormap(Colormap colormap)
Set the colormap to be used for the filter.- Parameters:
colormap- the colormap- See Also:
getColormap()
-
getColormap
public Colormap getColormap()
Get the colormap to be used for the filter.- Returns:
- the colormap
- See Also:
setColormap(com.jhlabs.image.Colormap)
-
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)- Specified by:
filterin interfacejava.awt.image.BufferedImageOp- Overrides:
filterin classMotionBlurOp
-
toString
public java.lang.String toString()
- Overrides:
toStringin classMotionBlurOp
-
-