<?xml version="1.0"?>
<page id="GimpUi.cairo_surface_create_from_pixbuf"
      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>cairo.Surface</api:type>
      </api:returns>
      <api:name>gimp_cairo_surface_create_from_pixbuf</api:name>
      <api:arg>
        <api:type>GdkPixbuf.Pixbuf</api:type>
        <api:name>pixbuf</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.cairo_surface_create_from_pixbuf</title>
  <synopsis><code mime="text/x-python">
@accepts(GdkPixbuf.Pixbuf)
@returns(cairo.Surface)
def cairo_surface_create_from_pixbuf(pixbuf):
    # Python wrapper for gimp_cairo_surface_create_from_pixbuf()
  </code></synopsis>
  <p>Create a Cairo image surface from a GdkPixbuf.</p>  <p>You should avoid calling this function as there are probably more
efficient ways of achieving the result you are looking for.</p>
  <p>Since 2.6</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>
