public class PerspectiveFilter extends TransformFilter implements DynFiltering
BILINEAR, NEAREST_NEIGHBOUR
Constructor and Description |
---|
PerspectiveFilter()
Construct a PerspectiveFilter.
|
PerspectiveFilter(float x0,
float y0,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
Construct a PerspectiveFilter.
|
Modifier and Type | Method and Description |
---|---|
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() |
getEdgeAction, getInterpolation, setEdgeAction, setInterpolation
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
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 cornerpublic 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 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
Copyright © 2015 Lucee