Pixbuf.this

Creates a new GdkPixbuf out of in-memory image data. Currently only RGB images with 8 bits per sample are supported.

Parameters

data char*

Image data in 8-bit/sample packed format. array

colorspace GdkColorspace

Colorspace for the image data

hasAlpha int

Whether the data has an opacity channel

bitsPerSample int

Number of bits per sample

width int

Width of the image in pixels, must be > 0

height int

Height of the image in pixels, must be > 0

rowstride int

Distance in bytes between row starts

destroyFn GdkPixbufDestroyNotify

Function used to free the data when the pixbuf's reference count drops to zero, or NULL if the data should not be freed. [scope async][allow-none]

destroyFnData void*

Closure data to pass to the destroy notification function. closure

Throws

ConstructionException GTK+ fails to create the object.

Meta