Gnome::Gdk4::MemoryTexture
Description§
A Gnome::Gdk4::Texture representing image data in memory.
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! )
Code
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 )
Code
- $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.
About my projects, examples and tutorials