pixbuf_create_buffer


Description:


[ Version ( since = "2.10" ) ]
public Buffer pixbuf_create_buffer (Pixbuf pixbuf)

Returns a Buffer that's either backed by the pixbuf's pixels, or a copy of them.

This function tries to not copy the pixbuf's pixels. If the pixbuf's rowstride is a multiple of its bpp, a simple reference to the pixbuf's pixels is made and pixbuf will be kept around for as long as the buffer exists; otherwise the pixels are copied.

Parameters:

pixbuf

a Pixbuf

Returns:

a new Buffer.


Namespace: Gimp
Package: gimp-3.0