Android Guides | Samples

Android.Media.ExifInterface Class

This is a class for reading and writing Exif tags in a JPEG file.

See Also: ExifInterface

Syntax

[Android.Runtime.Register("android/media/ExifInterface", DoNotGenerateAcw=true)]
public class ExifInterface : Object

Remarks

This is a class for reading and writing Exif tags in a JPEG file.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5

The members of Android.Media.ExifInterface are listed below.

See Also: Object

Public Constructors

Reads Exif tags from the specified JPEG file.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
TagApertureString. Type is String.
const
TagDatetimeString. Type is String.
const
TagExposureTimeString. Type is String.
const
TagFlashString. Type is int.
const
TagFocalLengthString. Type is rational.
const
TagGpsAltitudeString. The altitude (in meters) based on the reference in TAG_GPS_ALTITUDE_REF.
const
TagGpsAltitudeRefString. 0 if the altitude is above sea level. 1 if the altitude is below sea level.
const
TagGpsDatestampString. Type is String.
const
TagGpsLatitudeString. String.
const
TagGpsLatitudeRefString. Type is String.
const
TagGpsLongitudeString. String.
const
TagGpsLongitudeRefString. Type is String.
const
TagGpsProcessingMethodString. Type is String.
const
TagGpsTimestampString. Type is String.
const
TagImageLengthString. Type is int.
const
TagImageWidthString. Type is int.
const
TagIsoString. Type is String.
const
TagMakeString. Type is String.
const
TagModelString. Type is String.
const
TagOrientationString. Type is int.
const
TagWhiteBalanceString. Type is int.

Public Properties

[read-only]
HasThumbnailBoolean. Returns true if the JPEG file has a thumbnail.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

GetAltitude(Double) : Double
Return the altitude in meters.
GetAttribute(String) : String
Returns the value of the specified tag or null if there is no such tag in the JPEG file.
GetAttributeDouble(String, Double) : Double
Returns the double value of the specified rational tag.
GetAttributeInt(String, Int32) : Int32
Returns the integer value of the specified tag.
GetLatLong(Single[]) : Boolean
Stores the latitude and longitude value in a float array.
GetThumbnail() : Byte[]
Returns the thumbnail inside the JPEG file, or null if there is no thumbnail.
SaveAttributes()
Save the tag data into the JPEG file.
SetAttribute(String, String)
Set the value of the specified tag.