com.jhlabs.image

Class RaysFilter

Implemented Interfaces:
BufferedImageOp, Cloneable, MotionBlur

public class RaysFilter
extends MotionBlurOp

A filter which produces the effect of light rays shining out of an image.

Constructor Summary

RaysFilter()
Construct a MotionBlurOp.

Method Summary

BufferedImage
filter(BufferedImage src, BufferedImage dst)
Colormap
getColormap()
Get the colormap to be used for the filter.
float
getOpacity()
Get the opacity of the rays.
boolean
getRaysOnly()
Get whether to render only the rays.
float
getStrength()
Get the strength of the rays.
float
getThreshold()
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.
String
toString()

Methods inherited from class com.jhlabs.image.MotionBlurOp

filter, getAngle, getCentre, getCentreX, getCentreY, getDistance, getRotation, getZoom, setAngle, setCentre, setCentreX, setCentreY, setDistance, setRotation, setZoom, toString

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRGB, getRenderingHints, setRGB

Constructor Details

RaysFilter

public RaysFilter()
Construct a MotionBlurOp.

Method Details

filter

public BufferedImage filter(BufferedImage src,
                            BufferedImage dst)
Overrides:
filter in interface MotionBlurOp

getColormap

public Colormap getColormap()
Get the colormap to be used for the filter.
Returns:
the colormap

getOpacity

public float getOpacity()
Get the opacity of the rays.
Returns:
the opacity.

getRaysOnly

public boolean getRaysOnly()
Get whether to render only the rays.
Returns:
true to render rays only.

getStrength

public float getStrength()
Get the strength of the rays.
Returns:
the strength.

getThreshold

public float getThreshold()
Get the threshold value.
Returns:
the threshold value

setColormap

public void setColormap(Colormap colormap)
Set the colormap to be used for the filter.
Parameters:
colormap - the colormap
See Also:
getColormap()

setOpacity

public void setOpacity(float opacity)
Set the opacity of the rays.
Parameters:
opacity - the opacity.

setRaysOnly

public void setRaysOnly(boolean raysOnly)
Set whether to render only the rays.
Parameters:
raysOnly - true to render rays only.

setStrength

public void setStrength(float strength)
Set the strength of the rays.
Parameters:
strength - the strength.

setThreshold

public void setThreshold(float threshold)
Set the threshold value.
Parameters:
threshold - the threshold value

toString

public String toString()
Overrides:
toString in interface MotionBlurOp