构造函数
GdkMemoryTexturenew
声明 [src]
GdkTexture*
gdk_memory_texture_new (
int width,
int height,
GdkMemoryFormat format,
GBytes* bytes,
gsize stride
)
参数
width-
类型:
int纹理的宽度。
height-
类型:
int纹理的高度。
format-
类型:
GdkMemoryFormat数据格式。
bytes-
类型:
GBytes包含像素数据的
GBytes。数据由函数的调用者拥有。 stride-
类型:
gsize数据行的行宽。
返回值
类型: GdkMemoryTexture
一个新创建的 GdkTexture。
| 函数的调用者负责接收数据并自由释放它。 |