Gdk.MemoryTexture

g GObject.GInterface GObject.GInterface Gdk.Paintable Gdk.Paintable GObject.GInterface->Gdk.Paintable Gio.Icon Gio.Icon GObject.GInterface->Gio.Icon Gio.LoadableIcon Gio.LoadableIcon GObject.GInterface->Gio.LoadableIcon GObject.Object GObject.Object Gdk.Texture Gdk.Texture GObject.Object->Gdk.Texture Gdk.MemoryTexture Gdk.MemoryTexture Gdk.Paintable->Gdk.Texture Gdk.Texture->Gdk.MemoryTexture Gio.Icon->Gdk.Texture Gio.LoadableIcon->Gdk.Texture

Subclasses:

None

Methods

Inherited:

Gdk.Texture (13), GObject.Object (37), Gdk.Paintable (10), Gio.Icon (6), Gio.LoadableIcon (3)

Structs:

GObject.ObjectClass (5)

class

new (width, height, format, bytes, stride)

Virtual Methods

Inherited:

GObject.Object (7), Gdk.Paintable (6), Gio.Icon (4), Gio.LoadableIcon (3)

Properties

Inherited:

Gdk.Texture (2)

Signals

Inherited:

GObject.Object (1), Gdk.Paintable (2)

Fields

Inherited:

GObject.Object (1), Gdk.Paintable (2)

Class Details

class Gdk.MemoryTexture(**kwargs)
Bases:

Gdk.Texture

Abstract:

No

Structure:

Gdk.MemoryTextureClass

A GdkTexture representing image data in memory.

classmethod new(width, height, format, bytes, stride)[source]
Parameters:
  • width (int) – the width of the texture

  • height (int) – the height of the texture

  • format (Gdk.MemoryFormat) – the format of the data

  • bytes (GLib.Bytes) – the GBytes containing the pixel data

  • stride (int) – rowstride for the data

Returns:

A newly-created GdkTexture

Return type:

Gdk.MemoryTexture

Creates a new texture for a blob of image data.

The GBytes must contain stride × height pixels in the given format.