Compartir a través de


GLUtils.GetType(Bitmap) Method

Definition

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

[Android.Runtime.Register("getType", "(Landroid/graphics/Bitmap;)I", "")]
public static int GetType (Android.Graphics.Bitmap? bitmap);
[<Android.Runtime.Register("getType", "(Landroid/graphics/Bitmap;)I", "")>]
static member GetType : Android.Graphics.Bitmap -> int

Parameters

bitmap
Bitmap

bitmap

Returns

the OpenGL ES type of the bitmap.

Attributes

Exceptions

if 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.

Java documentation for android.opengl.GLUtils.getType(android.graphics.Bitmap).

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