<?xml version="1.0"?>
<page id="Gimp.Image.get_channels"
      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>Array(Gimp.Channel)</api:type>
      </api:returns>
      <api:name>gimp_image_get_channels</api:name>
    </api:function>
  </info>
  <title>Gimp.Image.prototype.get_channels</title>
  <synopsis><code mime="text/x-gjs">
function get_channels(): Array(<link xref="Gimp.Channel">Gimp.Channel</link>) {
    // Gjs wrapper for gimp_image_get_channels()
}
  </code></synopsis>
  <p>Returns the list of channels contained in the specified image.</p>  <p>This procedure returns the list of channels contained in the
specified image. This does not include the selection mask, or layer
masks. The order is from topmost to bottommost. Note that
\"channels\" are custom channels and do not include the image's
color components.</p>

<terms>
<item>
<title><code>Returns</code></title>
  <p>
         The list of channels contained in the image.
         The returned value must be freed with g_free().</p>
</item>
</terms>

</page>
