<?xml version="1.0"?>
<page id="GimpUi.ZoomPreview.get_source"
      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="GimpUi.ZoomPreview" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>[guint8]</api:type>
      </api:returns>
      <api:name>gimp_zoom_preview_get_source</api:name>
      <api:arg>
        <api:type>GimpUi.ZoomPreview</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>int</api:type>
        <api:name>bpp</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.ZoomPreview.get_source</title>
  <synopsis><code mime="text/x-python">
@accepts(GimpUi.ZoomPreview, int, int, int)
@returns([guint8])
def get_source(self, width, height, bpp):
    # Python wrapper for gimp_zoom_preview_get_source()
  </code></synopsis>
  <p>Returns the scaled image data of the part of the drawable the
<link xref="GimpUi.ZoomPreview"/> is currently showing, as a newly allocated array of guchar.
This function also allow to get the current width, height and bpp of the
<link xref="GimpUi.ZoomPreview"/>.</p>
  <p>Since 2.4</p>
<terms>
<item>
<title><code>self</code></title>
  <p>a <link xref="GimpUi.ZoomPreview"/> widget</p>
</item>
<item>
<title><code>width</code></title>
  <p>a pointer to an int where the current width of the zoom widget
        will be put.</p>
</item>
<item>
<title><code>height</code></title>
  <p>a pointer to an int where the current width of the zoom widget
         will be put.</p>
</item>
<item>
<title><code>bpp</code></title>
  <p>return location for the number of bytes per pixel</p>
</item>
<item>
<title><code>Returns</code></title>
{formatter.format(node, node.retval.doc)}
</item>
</terms>

</page>
