public class Rotate extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
ROTATE_QUALITY
Default rotation quality is high.
|
| Constructor and Description |
|---|
Rotate() |
| Modifier and Type | Method and Description |
|---|---|
static Pix |
rotate(Pix pixs,
float degrees)
Performs rotation using the default parameters.
|
static Pix |
rotate(Pix pixs,
float degrees,
boolean quality)
Performs rotation with resizing using the default parameters.
|
static Pix |
rotate(Pix pixs,
float degrees,
boolean quality,
boolean resize)
Performs basic image rotation about the center.
|
static Pix |
rotateOrth(Pix pixs,
int quads)
Performs top-level rotation by multiples of 90 degrees.
|
public static final boolean ROTATE_QUALITY
public static Pix rotate(Pix pixs, float degrees)
pixs - The source pix.degrees - The number of degrees to rotate; clockwise is positive.public static Pix rotate(Pix pixs, float degrees, boolean quality)
pixs - The source pix.degrees - The number of degrees to rotate; clockwise is positive.quality - Whether to use high-quality rotation.public static Pix rotate(Pix pixs, float degrees, boolean quality, boolean resize)
Notes:
pixs - The source pix.degrees - The number of degrees to rotate; clockwise is positive.quality - Whether to use high-quality rotation.resize - Whether to expand the output so that no pixels are lost.
Note: 1bpp images are always resized when
quality is true.