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 × height pixels
in the given format.
Parameters
- width
- 
            Type: intThe width of the texture. 
- height
- 
            Type: intThe height of the texture. 
- format
- 
            Type: GdkMemoryFormatThe format of the data. 
- bytes
- 
            Type: GBytesThe GBytescontaining the pixel data.The data is owned by the caller of the function. 
- stride
- 
            Type: gsizeRowstride for the data. 
Return value
Type: GdkMemoryTexture
A newly-created GdkTexture
| The caller of the function takes ownership of the data, and is responsible for freeing it. |