Pixbuf.this

Creates a new #GdkPixbuf out of in-memory readonly image data. Currently only RGB images with 8 bits per sample are supported. This is the #GBytes variant of gdk_pixbuf_new_from_data().

Parameters

data Bytes

Image data in 8-bit/sample packed format inside a #GBytes

colorspace GdkColorspace

Colorspace for the image data

hasAlpha bool

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

Return Value

A newly-created #GdkPixbuf structure with a reference count of 1.

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.32