railo.runtime.img.filter
Class FlareFilter

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

public class FlareFilter
extends PointFilter
implements DynFiltering

An experimental filter for rendering lens flares.


Constructor Summary
FlareFilter()
           
 
Method Summary
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 int filterRGB(int x, int y, int rgb)
           
 float getBaseAmount()
           
 Point2D getCentre()
           
 int getColor()
           
 float getRadius()
          Get the radius of the effect.
 float getRayAmount()
           
 float getRingAmount()
           
 float getRingWidth()
           
 void setBaseAmount(float baseAmount)
           
 void setCentreX(float centreX)
           
 void setCentreY(float centreY)
           
 void setColor(int color)
           
 void setDimensions(int width, int height)
           
 void setRadius(float radius)
          Set the radius of the effect.
 void setRayAmount(float rayAmount)
           
 void setRingAmount(float ringAmount)
           
 void setRingWidth(float ringWidth)
           
 String toString()
           
 
Methods inherited from class railo.runtime.img.filter.PointFilter
filter
 
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

FlareFilter

public FlareFilter()
Method Detail

setColor

public void setColor(int color)

getColor

public int getColor()

setRingWidth

public void setRingWidth(float ringWidth)

getRingWidth

public float getRingWidth()

setBaseAmount

public void setBaseAmount(float baseAmount)

getBaseAmount

public float getBaseAmount()

setRingAmount

public void setRingAmount(float ringAmount)

getRingAmount

public float getRingAmount()

setRayAmount

public void setRayAmount(float rayAmount)

getRayAmount

public float getRayAmount()

setCentreY

public void setCentreY(float centreY)

setCentreX

public void setCentreX(float centreX)

getCentre

public Point2D getCentre()

setRadius

public void setRadius(float radius)
Set the radius of the effect.

Parameters:
radius - the radius
See Also:
getRadius()

getRadius

public float getRadius()
Get the radius of the effect.

Returns:
the radius
See Also:
setRadius(float)

setDimensions

public void setDimensions(int width,
                          int height)
Overrides:
setDimensions in class PointFilter

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Specified by:
filterRGB in class PointFilter

toString

public String toString()
Overrides:
toString in class Object

filter

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


Copyright © 2012 Railo