|
||||||||||
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.TwirlFilter
public class TwirlFilter
A Filter which distorts an image by twisting it from the centre out. The twisting is centred at the centre of the image and extends out to the smallest of the width and height. Pixels outside this radius are unaffected.
Field Summary |
---|
Fields inherited from class railo.runtime.img.filter.TransformFilter |
---|
BILINEAR, NEAREST_NEIGHBOUR |
Constructor Summary | |
---|---|
TwirlFilter()
Construct a TwirlFilter with no distortion. |
Method Summary | |
---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst)
|
BufferedImage |
filter(BufferedImage src,
Struct parameters)
|
float |
getAngle()
Get the angle of twist. |
Point2D |
getCentre()
Get the centre of the effect as a proportion of the image size. |
float |
getCentreX()
Get the centre of the effect in the X direction as a proportion of the image size. |
float |
getCentreY()
Get the centre of the effect in the Y direction as a proportion of the image size. |
float |
getRadius()
Get the radius of the effect. |
void |
setAngle(float angle)
Set the angle of twirl in radians. |
void |
setCentre(Point2D centre)
Set the centre of the effect as a proportion of the image size. |
void |
setCentreX(float centreX)
Set the centre of the effect in the X direction as a proportion of the image size. |
void |
setCentreY(float centreY)
Set the centre of the effect in the Y direction as a proportion of the image size. |
void |
setRadius(float radius)
Set the radius of the effect. |
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 TwirlFilter()
Method Detail |
---|
public void setAngle(float angle)
angle
- the angle of twirl. This is the angle by which pixels at the nearest edge of the image will move.getAngle()
public float getAngle()
setAngle(float)
public void setCentreX(float centreX)
centreX
- the centergetCentreX()
public float getCentreX()
setCentreX(float)
public void setCentreY(float centreY)
centreY
- the centergetCentreY()
public float getCentreY()
setCentreY(float)
public void setCentre(Point2D centre)
centre
- the centergetCentre()
public Point2D getCentre()
setCentre(java.awt.geom.Point2D)
public void setRadius(float radius)
radius
- the radiusgetRadius()
public float getRadius()
setRadius(float)
public BufferedImage filter(BufferedImage src, BufferedImage dst)
filter
in interface BufferedImageOp
filter
in class TransformFilter
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |