railo.runtime.img.filter
Class RaysFilter

java.lang.Object
  extended by railo.runtime.img.filter.AbstractBufferedImageOp
      extended by railo.runtime.img.filter.MotionBlurOp
          extended by railo.runtime.img.filter.RaysFilter
All Implemented Interfaces:
BufferedImageOp, Cloneable, DynFiltering

public class RaysFilter
extends MotionBlurOp
implements DynFiltering

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


Constructor Summary
RaysFilter()
           
 
Method Summary
 BufferedImage filter(BufferedImage src, BufferedImage dst)
           
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 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 railo.runtime.img.filter.MotionBlurOp
getAngle, getCentre, getCentreX, getCentreY, getDistance, getRotation, getZoom, setAngle, setCentreX, setCentreY, setDistance, setRotation, setZoom
 
Methods inherited from class railo.runtime.img.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RaysFilter

public RaysFilter()
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(railo.runtime.img.filter.Colormap)

filter

public BufferedImage filter(BufferedImage src,
                            BufferedImage dst)
Specified by:
filter in interface BufferedImageOp
Overrides:
filter in class MotionBlurOp

toString

public String toString()
Overrides:
toString in class MotionBlurOp

filter

public BufferedImage filter(BufferedImage src,
                            Struct parameters)
                     throws PageException
Specified by:
filter in interface DynFiltering
Throws:
PageException


Copyright © 2012 Railo