|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.img.filter.AbstractBufferedImageOp
railo.runtime.img.filter.ConvolveFilter
railo.runtime.img.filter.GaussianFilter
public class GaussianFilter
A filter which applies Gaussian blur to an image. This is a subclass of ConvolveFilter which simply creates a kernel with a Gaussian distribution for blurring.
Field Summary |
---|
Fields inherited from class railo.runtime.img.filter.ConvolveFilter |
---|
CLAMP_EDGES, WRAP_EDGES, ZERO_EDGES |
Constructor Summary | |
---|---|
GaussianFilter()
Construct a Gaussian filter. |
|
GaussianFilter(float radius)
Construct a Gaussian filter. |
Method Summary | |
---|---|
static void |
convolveAndTranspose(Kernel kernel,
int[] inPixels,
int[] outPixels,
int width,
int height,
boolean alpha,
boolean premultiply,
boolean unpremultiply,
int edgeAction)
Blur and transpose a block of ARGB pixels. |
BufferedImage |
filter(BufferedImage src,
BufferedImage dst)
|
BufferedImage |
filter(BufferedImage src,
Struct parameters)
|
float |
getRadius()
Get the radius of the kernel. |
static Kernel |
makeKernel(float radius)
Make a Gaussian blur kernel. |
void |
setRadius(float radius)
Set the radius of the kernel, and hence the amount of blur. |
String |
toString()
|
Methods inherited from class railo.runtime.img.filter.ConvolveFilter |
---|
convolve, convolve, convolveH, convolveHV, convolveV, createCompatibleDestImage, getBounds2D, getEdgeAction, getKernel, getPoint2D, getPremultiplyAlpha, getRenderingHints, getUseAlpha, setEdgeAction, setKernel, setPremultiplyAlpha, setUseAlpha |
Methods inherited from class railo.runtime.img.filter.AbstractBufferedImageOp |
---|
clone, getRGB, setRGB |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GaussianFilter()
public GaussianFilter(float radius)
radius
- blur radius in pixelsMethod Detail |
---|
public void setRadius(float radius)
radius
- the radius of the blur in pixels.getRadius()
public float getRadius()
setRadius(float)
public BufferedImage filter(BufferedImage src, BufferedImage dst)
filter
in interface BufferedImageOp
filter
in class ConvolveFilter
public static void convolveAndTranspose(Kernel kernel, int[] inPixels, int[] outPixels, int width, int height, boolean alpha, boolean premultiply, boolean unpremultiply, int edgeAction)
kernel
- the blur kernelinPixels
- the input pixelsoutPixels
- the output pixelswidth
- the width of the pixel arrayheight
- the height of the pixel arrayalpha
- whether to blur the alpha channeledgeAction
- what to do at the edgespublic static Kernel makeKernel(float radius)
radius
- the blur radius
public String toString()
toString
in class ConvolveFilter
public BufferedImage filter(BufferedImage src, Struct parameters) throws PageException
filter
in interface DynFiltering
filter
in class ConvolveFilter
PageException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |