public class OrientationUtil
extends java.lang.Object
OrientationUtil
helps in adjusting a Layer
to the orientation stored in the image's EXIF or TIFF metadata.Modifier and Type | Field and Description |
---|---|
static short |
ORIENTATION_MIRROR_HORIZONTAL |
static short |
ORIENTATION_MIRROR_HORIZONTAL_ROTATE_270_CW |
static short |
ORIENTATION_MIRROR_HORIZONTAL_ROTATE_90_CW |
static short |
ORIENTATION_MIRROR_VERTICAL |
static short |
ORIENTATION_NORMAL |
static short |
ORIENTATION_ROTATE_180 |
static short |
ORIENTATION_ROTATE_270_CW |
static short |
ORIENTATION_ROTATE_90_CW |
Constructor and Description |
---|
OrientationUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
adjustOrientation(Asset asset,
Layer layer)
Adjust the given layer to the orientation stored in the asset's metadata.
|
static short |
getOrientation(Asset asset)
Get the exif orientation flag from the asset metadata.
|
static boolean |
hasOrientationMetadata(Asset asset)
Check if asset contains metadata for orientation.
|
public static final short ORIENTATION_NORMAL
public static final short ORIENTATION_MIRROR_HORIZONTAL
public static final short ORIENTATION_ROTATE_180
public static final short ORIENTATION_MIRROR_VERTICAL
public static final short ORIENTATION_MIRROR_HORIZONTAL_ROTATE_270_CW
public static final short ORIENTATION_ROTATE_90_CW
public static final short ORIENTATION_MIRROR_HORIZONTAL_ROTATE_90_CW
public static final short ORIENTATION_ROTATE_270_CW
public static boolean hasOrientationMetadata(Asset asset)
asset
- The assettrue
if orientation metadata existspublic static short getOrientation(Asset asset)
asset
- the assetCopyright © 2010 - 2020 Adobe. All Rights Reserved