<?xml version="1.0"?>
<page id="Gimp.Drawable.equalize"
      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>bool</api:type>
      </api:returns>
      <api:name>gimp_drawable_equalize</api:name>
      <api:arg>
        <api:type>Gimp.Drawable</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>bool</api:type>
        <api:name>mask_only</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Drawable.equalize</title>
  <synopsis><code mime="text/x-python">
@accepts(Gimp.Drawable, bool)
@returns(bool)
def equalize(self, mask_only):
    # Python wrapper for gimp_drawable_equalize()
  </code></synopsis>
  <p>Equalize the contents of the specified drawable.</p>  <p>This procedure equalizes the contents of the specified drawable.
Each intensity channel is equalized independently. The equalized
intensity is given as inten' = (255 - inten). The 'mask_only' option
specifies whether to adjust only the area of the image within the
selection bounds, or the entire image based on the histogram of the
selected area. If there is no selection, the entire image is
adjusted based on the histogram for the entire image.</p>
  <p>Since 2.10</p>
<terms>
<item>
<title><code>self</code></title>
  <p>The drawable.</p>
</item>
<item>
<title><code>mask_only</code></title>
  <p>Equalization option.</p>
</item>
<item>
<title><code>Returns</code></title>
{formatter.format(node, node.retval.doc)}
</item>
</terms>

</page>
