MemoryTexture#
Implemented Interfaces: Paintable, Icon, LoadableIcon
A GdkTexture representing image data in memory.
Constructors#
- class MemoryTexture
- classmethod new(width: int, height: int, format: MemoryFormat, bytes: Bytes, stride: int) MemoryTexture#
Creates a new texture for a blob of image data.
The
GBytesmust containstride×heightpixels in the given format.- Parameters:
width – the width of the texture
height – the height of the texture
format – the format of the data
bytes – the
GBytescontaining the pixel datastride – rowstride for the data