<?xml version="1.0"?>
<page id="Gimp.Drawable.threshold"
      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_threshold</api:name>
      <api:arg>
        <api:type>Gimp.Drawable</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>Gimp.HistogramChannel</api:type>
        <api:name>channel</api:name>
      </api:arg>
      <api:arg>
        <api:type>float</api:type>
        <api:name>low_threshold</api:name>
      </api:arg>
      <api:arg>
        <api:type>float</api:type>
        <api:name>high_threshold</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Drawable.threshold</title>
  <synopsis><code mime="text/x-python">
@accepts(Gimp.Drawable, Gimp.HistogramChannel, float, float)
@returns(bool)
def threshold(self, channel, low_threshold, high_threshold):
    # Python wrapper for gimp_drawable_threshold()
  </code></synopsis>
  <p>Threshold the specified drawable.</p>  <p>This procedures generates a threshold map of the specified drawable.
All pixels between the values of 'low_threshold' and
'high_threshold', on the scale of 'channel' are replaced with white,
and all other pixels with black.</p>
  <p>Since 2.10</p>
<terms>
<item>
<title><code>self</code></title>
  <p>The drawable.</p>
</item>
<item>
<title><code>channel</code></title>
  <p>The channel to base the threshold on.</p>
</item>
<item>
<title><code>low_threshold</code></title>
  <p>The low threshold value.</p>
</item>
<item>
<title><code>high_threshold</code></title>
  <p>The high threshold value.</p>
</item>
<item>
<title><code>Returns</code></title>
{formatter.format(node, node.retval.doc)}
</item>
</terms>

</page>
