<?xml version="1.0"?>
<page id="Gimp.pixbuf_create_buffer"
      type="topic"
      style="function"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="index" group="function" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Gegl.Buffer</api:type>
      </api:returns>
      <api:name>gimp_pixbuf_create_buffer</api:name>
      <api:arg>
        <api:type>GdkPixbuf.Pixbuf</api:type>
        <api:name>pixbuf</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.pixbuf_create_buffer</title>
  <synopsis><code mime="text/x-python">
@accepts(GdkPixbuf.Pixbuf)
@returns(Gegl.Buffer)
def pixbuf_create_buffer(pixbuf):
    # Python wrapper for gimp_pixbuf_create_buffer()
  </code></synopsis>
  <p>Returns a <link href="../Gegl-0.4/Gegl.Buffer.html">Gegl.Buffer</link> that's either backed by the <code>pixbuf</code>'s pixels,
or a copy of them. This function tries to not copy the <code>pixbuf</code>'s
pixels. If the pixbuf's rowstride is a multiple of its bpp, a
simple reference to the <code>pixbuf</code>'s pixels is made and <code>pixbuf</code> will
be kept around for as long as the buffer exists; otherwise the
pixels are copied.</p>
  <p>Since 2.10</p>
<terms>
<item>
<title><code>pixbuf</code></title>
  <p>a <link href="../GdkPixbuf-2.0/GdkPixbuf.Pixbuf.html">GdkPixbuf.Pixbuf</link></p>
</item>
<item>
<title><code>Returns</code></title>
{formatter.format(node, node.retval.doc)}
</item>
</terms>

</page>
