<?xml version="1.0"?>
<page id="Gimp.Layer.from_mask"
      type="topic"
      style="function"
      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.Layer" group="function" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Gimp.Layer</api:type>
      </api:returns>
      <api:name>gimp_layer_from_mask</api:name>
      <api:arg>
        <api:type>Gimp.LayerMask</api:type>
        <api:name>mask</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Layer.from_mask</title>
  <synopsis><code mime="text/x-gjs">
function from_mask(mask: <link xref="Gimp.LayerMask">Gimp.LayerMask</link>): <link xref="Gimp.Layer">Gimp.Layer</link> {
    // Gjs wrapper for gimp_layer_from_mask()
}
  </code></synopsis>
  <p>Get the specified mask's layer.</p>  <p>This procedure returns the specified mask's layer , or -1 if none
exists.</p>
  <p>Since 2.2</p>
<terms>
<item>
<title><code>mask</code></title>
  <p>Mask for which to return the layer.</p>
</item>
<item>
<title><code>Returns</code></title>
  <p>The mask's layer.</p>
</item>
</terms>

</page>
