|
||||||||||
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.TransformFilter
railo.runtime.img.filter.PerspectiveFilter
public class PerspectiveFilter
A filter which performs a perspective distortion on an image.
Field Summary |
---|
Fields inherited from class railo.runtime.img.filter.TransformFilter |
---|
BILINEAR, NEAREST_NEIGHBOUR |
Constructor Summary | |
---|---|
PerspectiveFilter()
Construct a PerspectiveFilter. |
|
PerspectiveFilter(float x0,
float y0,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
Construct a PerspectiveFilter. |
Method Summary | |
---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst)
|
BufferedImage |
filter(BufferedImage src,
Struct parameters)
|
float |
getOriginX()
Get the origin of the output image. |
float |
getOriginY()
Get the origin of the output image. |
void |
setCorners(float x0,
float y0,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
Set the new positions of the image corners. |
void |
setXLB(float xlb)
the new horizontal position of the bottom left corner, negative values are translated to image-width - x. |
void |
setXLT(float xlt)
the new horizontal position of the top left corner, negative values are translated to image-width - x. |
void |
setXRB(float xrb)
the new horizontal position of the bottom right corner, negative values are translated to image-width - x. |
void |
setXRT(float xrt)
the new horizontal position of the top right corner, negative values are translated to image-width - x. |
void |
setYLB(float ylb)
the new vertical position of the bottom left corner, negative values are translated to image-height - y. |
void |
setYLT(float ylt)
the new vertical position of the top left corner, negative values are translated to image-height - y. |
void |
setYRB(float yrb)
the new vertical position of the bottom right corner, negative values are translated to image-height - y. |
void |
setYRT(float yrt)
the new vertical position of the top right corner, negative values are translated to image-height - y. |
String |
toString()
|
Methods inherited from class railo.runtime.img.filter.TransformFilter |
---|
getEdgeAction, getInterpolation, setEdgeAction, setInterpolation |
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 PerspectiveFilter()
public PerspectiveFilter(float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3)
x0
- the new position of the top left cornery0
- the new position of the top left cornerx1
- the new position of the top right cornery1
- the new position of the top right cornerx2
- the new position of the bottom right cornery2
- the new position of the bottom right cornerx3
- the new position of the bottom left cornery3
- the new position of the bottom left cornerMethod Detail |
---|
public void setCorners(float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3)
x0
- the new position of the top left cornery0
- the new position of the top left cornerx1
- the new position of the top right cornery1
- the new position of the top right cornerx2
- the new position of the bottom right cornery2
- the new position of the bottom right cornerx3
- the new position of the bottom left cornery3
- the new position of the bottom left cornerpublic void setXLT(float xlt)
x0
- the x0 to setpublic void setYLT(float ylt)
y0
- the y0 to setpublic void setXRT(float xrt)
x1
- the x1 to setpublic void setYRT(float yrt)
y1
- the y1 to setpublic void setXRB(float xrb)
x2
- the x2 to setpublic void setYRB(float yrb)
y2
- the y2 to setpublic void setXLB(float xlb)
xlb
- the x3 to setpublic void setYLB(float ylb)
y3
- the y3 to setpublic float getOriginX()
public float getOriginY()
public String toString()
toString
in class Object
public BufferedImage filter(BufferedImage src, Struct parameters) throws PageException
filter
in interface DynFiltering
filter
in class TransformFilter
PageException
public BufferedImage filter(BufferedImage src, BufferedImage dst)
filter
in interface BufferedImageOp
filter
in class TransformFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |