public class RotateFilter extends TransformFilter
Modifier and Type | Field and Description |
---|---|
private float |
angle |
private float |
cos |
private boolean |
resize |
private float |
sin |
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZERO
Constructor and Description |
---|
RotateFilter()
Construct a RotateFilter.
|
RotateFilter(float angle)
Construct a RotateFilter.
|
RotateFilter(float angle,
boolean resize)
Construct a RotateFilter.
|
Modifier and Type | Method and Description |
---|---|
float |
getAngle()
Returns the angle of rotation.
|
void |
setAngle(float angle)
Specifies the angle of rotation.
|
String |
toString() |
private void |
transform(int x,
int y,
Point out) |
protected void |
transformInverse(int x,
int y,
float[] out)
Inverse transform a point.
|
protected void |
transformSpace(Rectangle rect)
Forward transform a rectangle.
|
filter, filterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
private float angle
private float cos
private float sin
private boolean resize
public RotateFilter()
public RotateFilter(float angle)
angle
- the angle to rotatepublic RotateFilter(float angle, boolean resize)
angle
- the angle to rotateresize
- true if the output image should be resizedpublic void setAngle(float angle)
angle
- the angle of rotation.getAngle()
public float getAngle()
setAngle(float)
protected void transformSpace(Rectangle rect)
TransformFilter
transformSpace
in class TransformFilter
rect
- the rectangle to transformprotected 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 imageWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses