MemoryTexture
Description:
[ CCode ( has_construct_function = false , type = "GdkTexture*" ) ]
public MemoryTexture (int width, int height, MemoryFormat format, Bytes bytes, size_t stride)
public MemoryTexture (int width, int height, MemoryFormat format, Bytes bytes, size_t stride)
Creates a new texture for a blob of image data.
The `GBytes` must contain stride × height pixels in the given format.
Parameters:
| width |
the width of the texture |
| height |
the height of the texture |
| format |
the format of the data |
| bytes |
the `GBytes` containing the pixel data |
| stride |
rowstride for the data |
Returns:
|
A newly-created `GdkTexture` |