Package: gdk-pixbuf

Function gdk-pixbuf-new

Lambda List

gdk-pixbuf-new (colorspace has-alpha bits-per-sample width height)

Arguments

colorspace -- a gdk-color-space value for the image
has-alpha -- a boolean whether the image should have transparency information
bits-per-sample -- an integer with number of bits per color sample
width -- an integer with the width of image in pixels, must be > 0
height -- an integer with the height of image in pixels, must be > 0

Return Value

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

Details

Creates a new gdk-pixbuf object 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.
 

See also

2021-12-12