OK! I found the answer:
How WPF uses color models, this is System.Windows.Media.Color static constructor FromValues() and the introduction of a color profile:
The following code, for example:
var c = Color.FromValues( new float[] {1.0f,0.0f,0.0f,0.0f } , new Uri("file://C:/ICCProfile.icc", UriKind.Absolute));
creates 100% blue color.
Profiles can be downloaded from http://www.eci.org/doku.php?id=en:start
I tested this solution with XpsDocumentWriter and I confirm that it generates the correct CMYK color code.
For XAML, it's just a matter of building an IValueConverter , which converts something like "~ C, M, Y, K" (like #RRGGBB for RGB) into CMYK real color.
el_shayan
source share