MemoryTexture.this

this(void * ptr, Flag!"Take" take)
No documentation available for this declaration.
this(int width, int height, gdk.types.MemoryFormat format, glib.bytes.Bytes bytes, size_t stride)

Creates a new texture for a blob of image data.

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

Parameters

widththe width of the texture
heightthe height of the texture
formatthe format of the data
bytesthe [glib.bytes.Bytes] containing the pixel data
striderowstride for the data

Returns

A newly-created [gdk.texture.Texture]