public enum ImageAngle extends java.lang.Enum<ImageAngle>
Indicates the rotation required for a picture, to display it properly. Also indicates the angle at which the original pictures were taken, if supported by the camera/mobile/device.
http://www.impulseadventure.com/photo/exif-orientation.html
Enum Constant and Description |
---|
BOTTOM_LEFTSIDE
Not used.
|
LEFTSIDE_TOP
Not used.
|
NINETYDEGREE_CLOCKWISE
Photocamera was turned 90 degrees counter clockwise originally.
|
NINETYDEGREE_COUNTER_CLOCKWISE
Photocamera was turned 90 degrees clockwise originally.
|
NORMAL
Normal angle.
|
RIGHTSIDE_BOTTOM
Not used.
|
TOP_RIGHTSIDE
Not used.
|
UPSIDE_DOWN
Photocamera was upside down.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getAngle()
Retrieves the angle of the picture as stored in image information.
|
static ImageAngle |
getAngle(java.lang.Integer angle)
Retrieves the enum corresponding to the image angle as stored
in the picture.
|
java.lang.String |
getName() |
java.lang.String |
toString() |
static ImageAngle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ImageAngle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageAngle NORMAL
___ _____/___| / | | O | |_________|
public static final ImageAngle TOP_RIGHTSIDE
public static final ImageAngle UPSIDE_DOWN
_________ | | | O | |_________| \___|
public static final ImageAngle BOTTOM_LEFTSIDE
public static final ImageAngle LEFTSIDE_TOP
public static final ImageAngle NINETYDEGREE_CLOCKWISE
_______ | | | | /| O | || | |________|
public static final ImageAngle RIGHTSIDE_BOTTOM
public static final ImageAngle NINETYDEGREE_COUNTER_CLOCKWISE
_______ | | | | | O |\ | || |________|
public static ImageAngle[] values()
for (ImageAngle c : ImageAngle.values()) System.out.println(c);
public static ImageAngle 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 nullpublic java.lang.String toString()
toString
in class java.lang.Enum<ImageAngle>
public java.lang.Integer getAngle()
public static ImageAngle getAngle(java.lang.Integer angle)
public java.lang.String getName()