1.30 <GdkMemoryTexture>

Class: <GdkMemoryTexture>

It derives from <GdkTexture>.

A <GdkTexture> representing image data in memory.

Procedures

Procedure: memory-texture:new width height format bytes stride ⇒ %return

Creates a new texture for a blob of image data.

The <GBytes> must contain stride × height pixels in the given format.

width

Passed: a 32-bit integer.

the width of the texture

height

Passed: a 32-bit integer.

the height of the texture

format

Passed: a <GdkMemoryFormat>, or one of its symbols.

the format of the data

bytes

Passed: a <GBytes>.

the <GBytes> containing the pixel data

stride

Passed: an unsigned 64-bit integer.

rowstride for the data

%return

Returned: a <GdkMemoryTexture>.

A newly-created <GdkTexture>