<?xml version="1.0"?>
<page id="Gimp.RGB.to_cmyk"
      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.RGB" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>void</api:type>
      </api:returns>
      <api:name>gimp_rgb_to_cmyk</api:name>
      <api:arg>
        <api:type>Number(gdouble)</api:type>
        <api:name>pullout</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.RGB.prototype.to_cmyk</title>
  <synopsis><code mime="text/x-gjs">
function to_cmyk(pullout: Number(gdouble)): <link xref="Gimp.CMYK">Gimp.CMYK</link> {
    // Gjs wrapper for gimp_rgb_to_cmyk()
}
  </code></synopsis>
  <p>Does a naive conversion from RGB to CMYK colorspace. A simple
formula that doesn't take any color-profiles into account is used.
The amount of black pullout how can be controlled via the <code>pullout</code>
parameter. A <code>pullout</code> value of 0 makes this a conversion to CMY.
A value of 1 causes the maximum amount of black to be pulled out.</p>

<terms>
<item>
<title><code>pullout</code></title>
  <p>A scaling value (0-1) indicating how much black should be
          pulled out</p>
</item>
<item>
<title><code>Returns</code></title>
  <p>The input value naively converted
       to the CMYK colorspace</p>
</item>
</terms>

</page>
