|
||||||||||
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.WholeImageFilter
railo.runtime.img.filter.WarpFilter
public class WarpFilter
A filter for warping images using the gridwarp algorithm. You need to supply two warp grids, one for the source image and one for the destination image. The image will be warped so that a point in the source grid moves to its counterpart in the destination grid.
Constructor Summary | |
---|---|
WarpFilter()
Create a WarpFilter. |
|
WarpFilter(WarpGrid sourceGrid,
WarpGrid destGrid)
Create a WarpFilter with two warp grids. |
Method Summary | |
---|---|
void |
crossDissolve(int[] pixels1,
int[] pixels2,
int width,
int height,
float t)
|
BufferedImage |
filter(BufferedImage src,
Struct parameters)
|
WarpGrid |
getDestGrid()
Get the destination warp grid. |
int |
getFrames()
|
BufferedImage |
getMorphImage()
|
WarpGrid |
getSourceGrid()
Get the source warp grid. |
float |
getTime()
|
void |
morph(int[] srcPixels,
int[] destPixels,
int[] outPixels,
WarpGrid srcGrid,
WarpGrid destGrid,
int width,
int height,
float t)
|
void |
setDestGrid(WarpGrid destGrid)
Set the destination warp grid. |
void |
setFrames(int frames)
|
void |
setMorphImage(BufferedImage morphImage)
For morphing, sets the image we're morphing to. |
void |
setSourceGrid(WarpGrid sourceGrid)
Set the source warp grid. |
void |
setTime(float time)
|
String |
toString()
|
Methods inherited from class railo.runtime.img.filter.WholeImageFilter |
---|
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 |
---|
public WarpFilter()
public WarpFilter(WarpGrid sourceGrid, WarpGrid destGrid)
sourceGrid
- the source griddestGrid
- the destination gridMethod Detail |
---|
public void setSourceGrid(WarpGrid sourceGrid)
sourceGrid
- the source gridgetSourceGrid()
public WarpGrid getSourceGrid()
setSourceGrid(railo.runtime.img.filter.WarpGrid)
public void setDestGrid(WarpGrid destGrid)
destGrid
- the destination gridgetDestGrid()
public WarpGrid getDestGrid()
setDestGrid(railo.runtime.img.filter.WarpGrid)
public void setFrames(int frames)
public int getFrames()
public void setMorphImage(BufferedImage morphImage)
public BufferedImage getMorphImage()
public void setTime(float time)
public float getTime()
public void morph(int[] srcPixels, int[] destPixels, int[] outPixels, WarpGrid srcGrid, WarpGrid destGrid, int width, int height, float t)
public void crossDissolve(int[] pixels1, int[] pixels2, int width, int height, float t)
public String toString()
toString
in class Object
public BufferedImage filter(BufferedImage src, Struct parameters) throws PageException
filter
in interface DynFiltering
filter
in class WholeImageFilter
PageException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |