<?xml version="1.0"?>
<page id="Gimp.cairo_surface_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_cairo_surface_create_buffer</api:name>
      <api:arg>
        <api:type>cairo.Surface</api:type>
        <api:name>surface</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.cairo_surface_create_buffer</title>
  <synopsis><code mime="text/x-gjs">
function cairo_surface_create_buffer(surface: <link href="../cairo-1.0/cairo.Surface.html">cairo.Surface</link>): <link href="../Gegl-0.4/Gegl.Buffer.html">Gegl.Buffer</link> {
    // Gjs wrapper for gimp_cairo_surface_create_buffer()
}
  </code></synopsis>
  <p>This function returns a <link href="../Gegl-0.4/Gegl.Buffer.html">Gegl.Buffer</link> which wraps <code>surface</code>'s pixels.
It must only be called on image surfaces, calling it on other surface
types is an error.</p>
  <p>Since 2.10</p>
<terms>
<item>
<title><code>surface</code></title>
  <p>a Cairo surface</p>
</item>
<item>
<title><code>Returns</code></title>
  <p>a <link href="../Gegl-0.4/Gegl.Buffer.html">Gegl.Buffer</link></p>
</item>
</terms>

</page>
