Gnome::Gdk4::MemoryTexture
#------------------------------------------------------------------------------- #--[Class Description]---------------------------------------------------------- #-------------------------------------------------------------------------------
Description
A Gnome::Gdk4::Texture representing image data in memory.
#------------------------------------------------------------------------------- #--[Class Initialization]------------------------------------------------------- #-------------------------------------------------------------------------------
Class initialization
new
:native-object
Create an object using a native object from an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.
multi method new ( N-Object() :$native-object! )
#-------------------------------------------------------------------------------
new-memorytexture
Creates a new texture for a blob of image data.
The Gnome::Glib::N-Bytes must contain $stride Ć $height pixels
in the given format.
method new-memorytexture ( Int() $width, Int() $height, GdkMemoryFormat $format, N-Object $bytes, Int() $stride --> Gnome::Gdk4::MemoryTexture )
$width; the width of the texture.
$height; the height of the texture.
$format; the format of the data.
$bytes; the Gnome::Glib::N-Bytes containing the pixel data
$stride; rowstride for the data.