Sdílet prostřednictvím


ExifInterface.GetAttributeInt(String, Int32) Method

Definition

Returns the integer value of the specified tag.

[Android.Runtime.Register("getAttributeInt", "(Ljava/lang/String;I)I", "GetGetAttributeInt_Ljava_lang_String_IHandler")]
public virtual int GetAttributeInt (string tag, int defaultValue);
[<Android.Runtime.Register("getAttributeInt", "(Ljava/lang/String;I)I", "GetGetAttributeInt_Ljava_lang_String_IHandler")>]
abstract member GetAttributeInt : string * int -> int
override this.GetAttributeInt : string * int -> int

Parameters

tag
String

the name of the tag.

defaultValue
Int32

the value to return if the tag is not available.

Returns

Attributes

Remarks

Returns the integer value of the specified tag. If there is no such tag in the image file or the value cannot be parsed as integer, return <var>defaultValue</var>.

Java documentation for android.media.ExifInterface.getAttributeInt(java.lang.String, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to