PixbufLoader.writeBytes

This will cause a pixbuf loader to parse a buffer inside a #GBytes for an image. It will return %TRUE if the data was loaded successfully, and %FALSE if an error occurred. In the latter case, the loader will be closed, and will not accept further writes. If %FALSE is returned, @error will be set to an error from the #GDK_PIXBUF_ERROR or #G_FILE_ERROR domains.

See also: gdk_pixbuf_loader_write()

class PixbufLoader
bool
writeBytes

Parameters

buffer Bytes

The image data as a #GBytes

Return: %TRUE if the write was successful, or %FALSE if the loader cannot parse the buffer.

Throws

GException on failure.

Meta

Since

2.30