Pixbuf


Description:

[ CCode ( has_construct_function = false ) ]
public Pixbuf (Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height)

Creates a new `GdkPixbuf` 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

Color space for image

has_alpha

Whether the image should have transparency information

bits_per_sample

Number of bits per color sample

width

Width of image in pixels, must be > 0

height

Height of image in pixels, must be > 0

Returns:

A newly-created pixel buffer