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.
|
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.Whether - to expand the output so that no pixels are lost.
Note: 1bpp images are always resized when
quality is true.Copyright © 2014. All rights reserved.