语言

GLUtils.GetType(Bitmap) 方法

定义

返回提供的位图的 OpenGL ES 定义的类型(如果有)。

[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

参数

bitmap
Bitmap

位图

返回

位图的 OpenGL ES 类型。

特性

例外

如果位图没有类型,则为

注解

返回提供的位图的 OpenGL ES 定义的类型(如果有)。 如果位图以压缩格式存储,则它可能没有有效的 OpenGL ES 类型。

Java文档android.opengl.GLUtils.getType(android.graphics.Bitmap)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于