public static enum Scalr.Rotation extends java.lang.Enum<Scalr.Rotation>
Enum Constant and Description |
---|
CW_180
180-degree, clockwise rotation (to the right).
|
CW_270
270-degree, clockwise rotation (to the right).
|
CW_90
90-degree, clockwise rotation (to the right).
|
FLIP_HORZ
Flip the image horizontally by reflecting it around the y axis.
|
FLIP_VERT
Flip the image vertically by reflecting it around the x axis.
|
Modifier and Type | Method and Description |
---|---|
static Scalr.Rotation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Scalr.Rotation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Scalr.Rotation CW_90
public static final Scalr.Rotation CW_180
public static final Scalr.Rotation CW_270
public static final Scalr.Rotation FLIP_HORZ
This is not a standard rotation around a center point, but instead creates the mirrored reflection of the image horizontally.
More specifically, the vertical orientation of the image stays the same (the top stays on top, and the bottom on bottom), but the right and left sides flip. This is different than a standard rotation where the top and bottom would also have been flipped.
public static final Scalr.Rotation FLIP_VERT
This is not a standard rotation around a center point, but instead creates the mirrored reflection of the image vertically.
More specifically, the horizontal orientation of the image stays the same (the left stays on the left and the right stays on the right), but the top and bottom sides flip. This is different than a standard rotation where the left and right would also have been flipped.
public static Scalr.Rotation[] values()
for (Scalr.Rotation c : Scalr.Rotation.values()) System.out.println(c);
public static Scalr.Rotation valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null