MemoryTexture.this

Creates a new texture for a blob of image data.

The GBytes must contain @stride x @height pixels in the given format.

  1. this(GdkMemoryTexture* gdkMemoryTexture, bool ownedRef)
  2. this(int width, int height, GdkMemoryFormat format, Bytes bytes, size_t stride)
    class MemoryTexture

Parameters

width int

the width of the texture

height int

the height of the texture

format GdkMemoryFormat

the format of the data

bytes Bytes

the GBytes containing the pixel data

stride size_t

rowstride for the data

Return Value

A newly-created GdkTexture

Throws

ConstructionException GTK+ fails to create the object.

Meta