|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.TransformFilter
com.jhlabs.image.CircleFilter
public class CircleFilter
A filter which wraps an image around a circular arc.
Field Summary |
---|
Fields inherited from class com.jhlabs.image.TransformFilter |
---|
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, transformedSpace, WRAP, ZERO |
Constructor Summary | |
---|---|
CircleFilter()
Construct a CircleFilter. |
Method Summary | |
---|---|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst)
|
float |
getAngle()
Returns the angle of the arc. |
java.awt.geom.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 |
getHeight()
Get the height of the arc. |
float |
getRadius()
Get the radius of the effect. |
float |
getSpreadAngle()
Get the spread angle of the arc. |
void |
setAngle(float angle)
Set the angle of the arc. |
void |
setCentre(java.awt.geom.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 Y 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 |
setHeight(float height)
Set the height of the arc. |
void |
setRadius(float radius)
Set the radius of the effect. |
void |
setSpreadAngle(float spreadAngle)
Set the spread angle of the arc. |
java.lang.String |
toString()
|
protected void |
transformInverse(int x,
int y,
float[] out)
Inverse transform a point. |
Methods inherited from class com.jhlabs.image.TransformFilter |
---|
filterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation, transformSpace |
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp |
---|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CircleFilter()
Method Detail |
---|
public void setHeight(float height)
height
- the heightgetHeight()
public float getHeight()
setHeight(float)
public void setAngle(float angle)
angle
- the angle of the arc.getAngle()
public float getAngle()
setAngle(float)
public void setSpreadAngle(float spreadAngle)
spreadAngle
- the anglegetSpreadAngle()
public float getSpreadAngle()
setSpreadAngle(float)
public void setRadius(float radius)
radius
- the radiusgetRadius()
public float getRadius()
setRadius(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(java.awt.geom.Point2D centre)
centre
- the centergetCentre()
public java.awt.geom.Point2D getCentre()
setCentre(java.awt.geom.Point2D)
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
filter
in interface java.awt.image.BufferedImageOp
filter
in class TransformFilter
protected void transformInverse(int x, int y, float[] out)
TransformFilter
transformInverse
in class TransformFilter
x
- the X position of the pixel in the output imagey
- the Y position of the pixel in the output imageout
- the position of the pixel in the input imagepublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |