Package | com.distriqt.extension.camera |
Class | public class Orientation |
Inheritance | Orientation Object |
This class defines the orientation values to indicate the orientation of the camera relative to the captured scene. This can be used by the camera either to indicate the orientation automatically by an orientation sensor, or to allow the user to indicate the orientation manually by a menu switch, without actually transforming the image data itself.
These values are identical to the EXIF values stored in a JPEG.
For convenience, here is what the letter F would look like if it were tagged correctly and displayed by a program that ignores the orientation tag (thus showing the stored image):
1 2 3 4 5 6 7 8 888888 888888 88 88 8888888888 88 88 8888888888 88 88 88 88 88 88 88 88 88 88 88 88 8888 8888 8888 8888 88 8888888888 8888888888 88 88 88 88 88 88 88 888888 888888
Constant | Defined By | ||
---|---|---|---|
ORIENTATION_FLIP_HORIZONTAL : String = 2 [static]
The image is drawn as a mirror version of an image drawn
with the ORIENTATION_NORMAL value. | Orientation | ||
ORIENTATION_FLIP_VERTICAL : String = 4 [static]
The image is drawn as a mirror version of an image drawn
with the ORIENTATION_DOWN value. | Orientation | ||
ORIENTATION_NORMAL : String = 1 [static]
The default orientation of images. | Orientation | ||
ORIENTATION_ROTATE_180 : String = 3 [static]
The image is rotated 180 degrees
| Orientation | ||
ORIENTATION_ROTATE_270 : String = 6 [static]
The image is rotated 90 degrees counter-clockwise, or 270
degrees clockwise. | Orientation | ||
ORIENTATION_ROTATE_90 : String = 8 [static]
The image is rotated 90 degress clockwise. | Orientation | ||
ORIENTATION_TRANSPOSE : String = 5 [static]
The image is drawn as a mirror version of an image drawn
with the ORIENTATION_RIGHT value. | Orientation | ||
ORIENTATION_TRANSVERSE : String = 7 [static]
The image is drawn as a mirror version of an image drawn
with the ORIENTATION_ROTATE_270 value. | Orientation | ||
ORIENTATION_UNSPECIFIED : String = 0 [static]
An orientation flag is not set. | Orientation |
ORIENTATION_FLIP_HORIZONTAL | Constant |
public static const ORIENTATION_FLIP_HORIZONTAL:String = 2
The image is drawn as a mirror version of an image drawn with the ORIENTATION_NORMAL value. In other words, the image is flipped horizontally
ORIENTATION_FLIP_VERTICAL | Constant |
public static const ORIENTATION_FLIP_VERTICAL:String = 4
The image is drawn as a mirror version of an image drawn with the ORIENTATION_DOWN value. This is the equivalent to rotating an image in the "up" orientation by 180 degrees and then flipping it horizontally. (Also the equivalent of flipping the image vertically).
ORIENTATION_NORMAL | Constant |
public static const ORIENTATION_NORMAL:String = 1
The default orientation of images. The image is drawn right-side up
ORIENTATION_ROTATE_180 | Constant |
public static const ORIENTATION_ROTATE_180:String = 3
The image is rotated 180 degrees
ORIENTATION_ROTATE_270 | Constant |
public static const ORIENTATION_ROTATE_270:String = 6
The image is rotated 90 degrees counter-clockwise, or 270 degrees clockwise.
ORIENTATION_ROTATE_90 | Constant |
public static const ORIENTATION_ROTATE_90:String = 8
The image is rotated 90 degress clockwise.
ORIENTATION_TRANSPOSE | Constant |
public static const ORIENTATION_TRANSPOSE:String = 5
The image is drawn as a mirror version of an image drawn with the ORIENTATION_RIGHT value. This is the equivalent to rotating an image by 90 degrees clockwise and then flipping horizontally.
This can be considered to be the transpose, i.e. the x and y coordinates are interchanged.
ORIENTATION_TRANSVERSE | Constant |
public static const ORIENTATION_TRANSVERSE:String = 7
The image is drawn as a mirror version of an image drawn with the ORIENTATION_ROTATE_270 value. This is the equivalent to rotating an image by 90 degrees counter-clockwise and then flipping horizontally.
This can be considered the transverse.
ORIENTATION_UNSPECIFIED | Constant |
public static const ORIENTATION_UNSPECIFIED:String = 0
An orientation flag is not set.