MemoryTexture.this

Creates a new texture for a blob of image data.

The glib.bytes.Bytes must contain stride × height pixels in the given format.

  1. this(void* ptr, Flag!"Take" take)
  2. this(int width, int height, gdk.types.MemoryFormat format, glib.bytes.Bytes bytes, size_t stride)
    class MemoryTexture

Parameters

width int

the width of the texture

height int

the height of the texture

format gdk.types.MemoryFormat

the format of the data

bytes glib.bytes.Bytes

the glib.bytes.Bytes containing the pixel data

stride size_t

rowstride for the data

Return Value

A newly-created gdk.texture.Texture