Class: Gdk::MemoryTexture

Inherits:
Texture
  • Object
show all
Defined in:
lib/gdk4/memory-texture.rb

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, try_convert, #width, #width=

Instance Method Details

#initialize_rawGdk::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

Returns:



# File 'lib/gdk4/memory-texture.rb', line 19