MemoryTexture

A GdkTexture representing image data in memory.

Constructors

this
this(GdkMemoryTexture* gdkMemoryTexture, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(int width, int height, GdkMemoryFormat format, Bytes bytes, size_t stride)

Creates a new texture for a blob of image data.

Members

Functions

getMemoryTextureStruct
GdkMemoryTexture* getMemoryTextureStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

gdkMemoryTexture
GdkMemoryTexture* gdkMemoryTexture;

the main Gtk struct

Inherited Members

From Texture

gdkTexture
GdkTexture* gdkTexture;

the main Gtk struct

getTextureStruct
GdkTexture* getTextureStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

__anonymous
mixin PaintableT!(GdkTexture)
Undocumented in source.
getType
GType getType()
download
void download(char[] data, size_t stride)

Downloads the @texture into local memory.

getHeight
int getHeight()

Returns the height of the @texture, in pixels.

getWidth
int getWidth()

Returns the width of @texture, in pixels.

saveToPng
bool saveToPng(string filename)

Store the given @texture to the @filename as a PNG file.

Meta