<?xml version="1.0"?>
<page id="Gimp.Image.set_colormap"
      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_set_colormap</api:name>
      <api:arg>
        <api:type>Gimp.Image</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>[guint8]</api:type>
        <api:name>colormap</api:name>
      </api:arg>
      <api:arg>
        <api:type>int</api:type>
        <api:name>num_colors</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Image.set_colormap</title>
  <synopsis><code mime="text/x-python">
@accepts(Gimp.Image, [guint8], int)
@returns(bool)
def set_colormap(self, colormap, num_colors):
    # Python wrapper for gimp_image_set_colormap()
  </code></synopsis>
  <p>Sets the entries in the image's colormap.</p>  <p>This procedure sets the entries in the specified image's colormap.
The number of colors is specified by the "num_colors" parameter
and corresponds to the number of INT8 triples that must be contained
in the "cmap" array.</p>

<terms>
<item>
<title><code>self</code></title>
  <p>The image.</p>
</item>
<item>
<title><code>colormap</code></title>
  <p>The new colormap values.</p>
</item>
<item>
<title><code>num_colors</code></title>
  <p>Number of colors in the colormap array.</p>
</item>
<item>
<title><code>Returns</code></title>
{formatter.format(node, node.retval.doc)}
</item>
</terms>

</page>
