Package: gdk

Function gdk:memory-texture-new

Lambda List

gdk:memory-texture-new (width height format bytes stride)

Arguments

width -- an integer with the width of the texture
height -- an integer with the height of the texture
format -- a gdk:memory-format value with the format of the data
bytes -- a g:bytes instance containing the pixel data
stride -- an integer with the rowstride of the data

Return Value

A newly created gdk:texture object.

Details

Creates a new texture for a blob of image data. The g:bytes instance must contain stride x height pixels in the given format.
 

See also

#2023-8-1