Pixbuf.this

Creates a new gdk.Pixbuf structure and allocates a buffer for it. The buffer has an optimal rowstride. Note that the buffer is not cleared; you will have to fill it completely yourself.

Parameters

colorspace GdkColorspace

Color space for image

hasAlpha bool

Whether the image should have transparency information

bitsPerSample int

Number of bits per color sample

width int

Width of image in pixels, must be > 0

height int

Height of image in pixels, must be > 0

Return Value

A newly-created gdk.Pixbuf with a reference count of 1, or NULL if not enough memory could be allocated for the image buffer.

Throws

ConstructionException GTK+ fails to create the object.