Constructor
GdkMemoryTexturenew
Declaration [src]
GdkTexture*
gdk_memory_texture_new (
  int width,
  int height,
  GdkMemoryFormat format,
  GBytes* bytes,
  gsize stride
)
Description [src]
Creates a new texture for a blob of image data.
The GBytes must contain stride x height pixels
in the given format.
Parameters
| width | int | 
| The width of the texture. | |
| height | int | 
| The height of the texture. | |
| format | GdkMemoryFormat | 
| The format of the data. | |
| bytes | GBytes* | 
| The  | |
| The data is owned by the caller of the function. | |
| stride | gsize | 
| Rowstride for the data. | 
Return value
| Returns: | GdkTexture | 
| A newly-created  | |
| The caller of the function takes ownership of the data, and is responsible for freeing it. |