Gdk.MemoryTexture¶
- Subclasses:
None
Methods¶
- Inherited:
Gdk.Texture (13), GObject.Object (37), Gdk.Paintable (10), Gio.Icon (6), Gio.LoadableIcon (3)
- Structs:
class |
|
Virtual Methods¶
- Inherited:
GObject.Object (7), Gdk.Paintable (6), Gio.Icon (4), Gio.LoadableIcon (3)
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gdk.MemoryTexture(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
GdkTexture
representing image data in memory.- classmethod new(width, height, format, bytes, stride)[source]¶
- Parameters:
width (
int
) – the width of the textureheight (
int
) – the height of the textureformat (
Gdk.MemoryFormat
) – the format of the databytes (
GLib.Bytes
) – theGBytes
containing the pixel datastride (
int
) – rowstride for the data
- Returns:
A newly-created
GdkTexture
- Return type:
Creates a new texture for a blob of image data.
The
GBytes
must contain stride × height pixels in the given format.