<?xml version="1.0"?>
<page id="Gimp.Image.resize"
      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.Image" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>bool</api:type>
      </api:returns>
      <api:name>gimp_image_resize</api:name>
      <api:arg>
        <api:type>Gimp.Image</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>int</api:type>
        <api:name>new_width</api:name>
      </api:arg>
      <api:arg>
        <api:type>int</api:type>
        <api:name>new_height</api:name>
      </api:arg>
      <api:arg>
        <api:type>int</api:type>
        <api:name>offx</api:name>
      </api:arg>
      <api:arg>
        <api:type>int</api:type>
        <api:name>offy</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Image.resize</title>
  <synopsis><code mime="text/x-python">
@accepts(Gimp.Image, int, int, int, int)
@returns(bool)
def resize(self, new_width, new_height, offx, offy):
    # Python wrapper for gimp_image_resize()
  </code></synopsis>
  <p>Resize the image to the specified extents.</p>  <p>This procedure resizes the image so that it's new width and height
are equal to the supplied parameters. Offsets are also provided
which describe the position of the previous image's content. All
channels within the image are resized according to the specified
parameters; this includes the image selection mask. All layers
within the image are repositioned according to the specified
offsets.</p>

<terms>
<item>
<title><code>self</code></title>
  <p>The image.</p>
</item>
<item>
<title><code>new_width</code></title>
  <p>New image width.</p>
</item>
<item>
<title><code>new_height</code></title>
  <p>New image height.</p>
</item>
<item>
<title><code>offx</code></title>
  <p>x offset between upper left corner of old and new images: (new - old).</p>
</item>
<item>
<title><code>offy</code></title>
  <p>y offset between upper left corner of old and new images: (new - old).</p>
</item>
<item>
<title><code>Returns</code></title>
{formatter.format(node, node.retval.doc)}
</item>
</terms>

</page>
