Android Guides | Samples

Android.Opengl.GLUtils.GetType Method

Return the type as defined by OpenGL ES of the supplied bitmap, if there is one.

Syntax

[Android.Runtime.Register("getType", "(Landroid/graphics/Bitmap;)I", "")]
public static Int32 GetType (Bitmap bitmap)

Parameters

bitmap

Exceptions

TypeReason
IllegalArgumentExceptionif the bitmap does not have a type.

Remarks

Return the type as defined by OpenGL ES of the supplied bitmap, if there is one. If the bitmap is stored in a compressed format, it may not have a valid OpenGL ES type.

[Android Documentation]

Requirements

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