public class ExifUtils extends Object
SystemCapability.Multimedia#IMAGE| 构造器 | 说明 |
|---|---|
ExifUtils() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static double |
getAltitude(ImageSource imageSource,
double defaultValue) |
Obtains altitude information about the image in its Exif property.
|
static Pair<Float,Float> |
getLatLong(ImageSource imageSource) |
Obtains longitude and latitude information about the image in its Exif property.
|
public static Pair<Float,Float> getLatLong(ImageSource imageSource)
imageSource - Indicates the image data source.Pair object containing the longitude and latitude information if the information
exists; returns null otherwise. The f member of Pair indicates the latitude, and
s indicates the longitude.IllegalStateException - Throws this exception if native resources associated with imageSource have
been released.IllegalArgumentException - Throws this exception if imageSource is null.public static double getAltitude(ImageSource imageSource, double defaultValue)
imageSource - Indicates the image data source.defaultValue - Indicates the custom default value of the property.IllegalStateException - Throws this exception if native resources associated with imageSource have
been released.IllegalArgumentException - Throws this exception if imageSource is null.