|
||||||||||
| 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.RotateFilter
public class RotateFilter
A filter which rotates an image. These days this is easier done with Java2D, but this filter remains.
| Field Summary |
|---|
| Fields inherited from class com.jhlabs.image.TransformFilter |
|---|
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZERO |
| Constructor Summary | |
|---|---|
RotateFilter()
Construct a RotateFilter. |
|
RotateFilter(float angle)
Construct a RotateFilter. |
|
RotateFilter(float angle,
boolean resize)
Construct a RotateFilter. |
|
| Method Summary | |
|---|---|
float |
getAngle()
Returns the angle of rotation. |
void |
setAngle(float angle)
Specifies the angle of rotation. |
String |
toString()
|
protected void |
transformInverse(int x,
int y,
float[] out)
Inverse transform a point. |
protected void |
transformSpace(Rectangle rect)
Forward transform a rectangle. |
| Methods inherited from class com.jhlabs.image.TransformFilter |
|---|
filter, filterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation |
| 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 RotateFilter()
public RotateFilter(float angle)
angle - the angle to rotate
public RotateFilter(float angle,
boolean resize)
angle - the angle to rotateresize - true if the output image should be resized| Method Detail |
|---|
public void setAngle(float angle)
angle - the angle of rotation.getAngle()public float getAngle()
setAngle(float)protected void transformSpace(Rectangle rect)
TransformFilter
transformSpace in class TransformFilterrect - the rectangle to transform
protected void transformInverse(int x,
int y,
float[] out)
TransformFilter
transformInverse in class TransformFilterx - 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 String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||