GdkPixbuf* gdk_pixbuf_new_from_bytes ( GBytes* data, GdkColorspace colorspace, gboolean has_alpha, int bits_per_sample, int width, int height, int rowstride )
Creates a new
GdkPixbuf out of in-memory readonly image data.
Currently only RGB images with 8 bits per sample are supported.
This is the
GBytes variant of gdk_pixbuf_new_from_data(), useful
for language bindings.
Available since: 2.32
Image data in 8-bit/sample packed format inside a
The data is owned by the caller of the function.
Colorspace for the image data.
Whether the data has an opacity channel.
Number of bits per sample.
Width of the image in pixels, must be > 0
Height of the image in pixels, must be > 0
Distance in bytes between row starts.
A newly-created pixbuf.
|The caller of the function takes ownership of the data, and is responsible for freeing it.|