Pixbuf.this

Creates a new gdkpixbuf.pixbuf.Pixbuf structure and allocates a buffer for it.

If the allocation of the buffer failed, this function will return NULL.

The buffer has an optimal rowstride. Note that the buffer is not cleared; you will have to fill it completely yourself.

Parameters

colorspace gdkpixbuf.types.Colorspace

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 pixel buffer