:right-sidebar: True MemoryTexture =================================================================== .. currentmodule:: gi.repository.Gdk .. class:: MemoryTexture(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gdk.Texture`, :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gdk.Paintable`, :class:`~gi.repository.Gio.Icon`, :class:`~gi.repository.Gio.LoadableIcon` :Constructors: :: MemoryTexture(**properties) new(width:int, height:int, format:Gdk.MemoryFormat, bytes:GLib.Bytes, stride:int) -> Gdk.MemoryTexture Constructors ------------ .. rst-class:: interim-class .. class:: MemoryTexture :no-index: .. classmethod:: new(width: int, height: int, format: ~gi.repository.Gdk.MemoryFormat, bytes: ~gi.repository.GLib.Bytes, stride: int) -> ~gi.repository.Gdk.MemoryTexture Creates a new texture for a blob of image data. The ``GBytes`` must contain ``stride`` × ``height`` pixels in the given format. :param width: the width of the texture :param height: the height of the texture :param format: the format of the data :param bytes: the ``GBytes`` containing the pixel data :param stride: rowstride for the data