Class: Gdk::MemoryTexture

Inherits:
Texture
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from Texture

#download, #format, #height, #height=, #save_to_png, #save_to_png_bytes, #save_to_tiff, #save_to_tiff_bytes, #width, #width=

Constructor Details

#initialize(width, height, format, bytes, stride) ⇒ Gdk::MemoryTexture

Creates a new texture for a blob of image data.

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

Parameters:

  • width (Integer)

    the width of the texture

  • height (Integer)

    the height of the texture

  • format (Gdk::MemoryFormat)

    the format of the data

  • bytes (GLib::Bytes)

    the GBytes containing the pixel data

  • stride (Integer)

    rowstride for the data