Class: Gdk::MemoryTexture
Instance Method Summary collapse
-
#initialize(width, height, format, bytes, stride) ⇒ Gdk::MemoryTexture
constructor
Creates a new texture for a blob of image data.
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.