Pixbuf.this

this(void * ptr, Flag!"Take" take)
No documentation available for this declaration.
this(gdkpixbuf.types.Colorspace colorspace, bool hasAlpha, int bitsPerSample, int width, int height)

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

colorspaceColor space for image
hasAlphaWhether the image should have transparency information
bitsPerSampleNumber of bits per color sample
widthWidth of image in pixels, must be > 0
heightHeight of image in pixels, must be > 0

Returns

A newly-created pixel buffer