<?xml version="1.0"?>
<page id="Gimp.Drawable.get_thumbnail"
      type="topic"
      style="method"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="Gimp.Drawable" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>GdkPixbuf.Pixbuf</api:type>
      </api:returns>
      <api:name>gimp_drawable_get_thumbnail</api:name>
      <api:arg>
        <api:type>Gimp.Drawable</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>int</api:type>
        <api:name>width</api:name>
      </api:arg>
      <api:arg>
        <api:type>int</api:type>
        <api:name>height</api:name>
      </api:arg>
      <api:arg>
        <api:type>Gimp.PixbufTransparency</api:type>
        <api:name>alpha</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Drawable.get_thumbnail</title>
  <synopsis><code mime="text/x-python">
@accepts(Gimp.Drawable, int, int, Gimp.PixbufTransparency)
@returns(GdkPixbuf.Pixbuf)
def get_thumbnail(self, width, height, alpha):
    # Python wrapper for gimp_drawable_get_thumbnail()
  </code></synopsis>
  <p>Retrieves a thumbnail pixbuf for the drawable identified by
<code>self</code>. The thumbnail will be not larger than the requested
size.</p>
  <p>Since 2.2</p>
<terms>
<item>
<title><code>self</code></title>
  <p>the drawable</p>
</item>
<item>
<title><code>width</code></title>
  <p>the requested thumbnail width  (&lt;= 1024 pixels)</p>
</item>
<item>
<title><code>height</code></title>
  <p>the requested thumbnail height (&lt;= 1024 pixels)</p>
</item>
<item>
<title><code>alpha</code></title>
  <p>how to handle an alpha channel</p>
</item>
<item>
<title><code>Returns</code></title>
{formatter.format(node, node.retval.doc)}
</item>
</terms>

</page>
