Pixbuf.this

Creates a new gdk.Pixbuf out of in-memory readonly image data. Currently only RGB images with 8 bits per sample are supported. This is the glib.Bytes variant of Pixbuf.newFromData.

Parameters

data Bytes

Image data in 8-bit/sample packed format inside a glib.Bytes

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 gdk.Pixbuf structure with a reference count of 1.

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.32