title: Convert RGB value to CMYK using an ICC profile? c#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5237104/c-sharp-convert-rgb-value-to-cmyk-using-an-icc-profile">C# convert RGB value to CMYK using an ICC profile?</a>  </p>
  </blockquote>
  
  
  
  <p>Well.. I've been working on this for some time and discovered many things about this world, but could not perform one conversion. If I use:</p>
  
  <blockquote>
  <pre><code>System.Windows.Media.Color color = Color.FromValues(colorValues,
              new Uri(@"D:\ISOcoated_v2_300_eci.icc"));
  </code></pre>
  </blockquote>
  
  <p>Or any other color profile, I get a great result!
  But the parameter "colorValues​​" is in CMYK, and the result value is in RGB. =(</p>
  
  <p>I need to pass the values ​​in RGB and the method return me the value in CMYK. Preferably corresponding with the above conversion or some value close.</p>
  
  <p>Some links I found: </p>
  
  <ul>
  <li><p><a href="https://stackoverflow.com/questions/5237104/c-sharp-convert-rgb-value-to-cmyk-using-an-icc-profile">C# convert RGB value to CMYK using an ICC profile?</a> (I did exactly what was posted and the result was totally false and incompatible)</p></li>
  <li><p><a href="http://msdn.microsoft.com/en-us/library/system.windows.media.colorcontext.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/system.windows.media.colorcontext.aspx</a> and
  <a href="http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.formatconvertedbitmap(v=vs.85).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.formatconvertedbitmap(v=vs.85).aspx</a> (I got a number of exceptions.. )</p></li>
  <li><p><a href="https://stackoverflow.com/questions/4827270/using-cmyk-colours-in-wpf-xaml">Using CMYK colours in WPF/XAML</a> (..)</p></li>
  </ul>
  
  <p>Among others, none helped me for various reasons.. (Please not to post the RGB to CMYK formula I would like to use profiles)</p>