public class ImageHeaderParser
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
UNKNOWN_ORIENTATION
A constant indicating we were unable to parse the orientation from the image either because
no exif segment containing orientation data existed, or because of an I/O error attempting to
read the exif segment.
|
| Constructor and Description |
|---|
ImageHeaderParser(java.io.InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyExif(android.media.ExifInterface originalExif,
int width,
int height,
java.lang.String imageOutputPath) |
int |
getOrientation()
Parse the orientation from the image header.
|
public static final int UNKNOWN_ORIENTATION
public int getOrientation()
throws java.io.IOException
java.io.IOExceptionpublic static void copyExif(android.media.ExifInterface originalExif,
int width,
int height,
java.lang.String imageOutputPath)