public class Rotate
public static boolean ROTATE_QUALITY
Default rotation quality is high.
public static Pix rotate(Pix pixs, float degrees)
Performs rotation using the default parameters.
pixs - The source pix.degrees - The number of degrees to rotate; clockwise is positive.public static Pix rotate(Pix pixs, float degrees, boolean quality)
Performs rotation with resizing using the default parameters.
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)
Performs basic image rotation about the center.
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.public static Pix rotateOrth(Pix pixs, @IntRange int quads)
Performs top-level rotation by multiples of 90 degrees.
pixs - The source pix (all depths)quads - 0-3; number of 90 degree cw rotations