<?xml version="1.0"?>
<page id="Gimp.Drawable.invert"
      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>Boolean</api:type>
      </api:returns>
      <api:name>gimp_drawable_invert</api:name>
      <api:arg>
        <api:type>Boolean</api:type>
        <api:name>linear</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Drawable.prototype.invert</title>
  <synopsis><code mime="text/x-gjs">
function invert(linear: Boolean): Boolean {
    // Gjs wrapper for gimp_drawable_invert()
}
  </code></synopsis>
  <p>Invert the contents of the specified drawable.</p>  <p>This procedure inverts the contents of the specified drawable. Each
intensity channel is inverted independently. The inverted intensity
is given as inten' = (255 - inten). If 'linear' is TRUE, the
drawable is inverted in linear space.</p>
  <p>Since 2.10</p>
<terms>
<item>
<title><code>linear</code></title>
  <p>Whether to invert in linear space.</p>
</item>
<item>
<title><code>Returns</code></title>
  <p>TRUE on success.</p>
</item>
</terms>

</page>
