Photoshop的CMYK到RGB公式 [英] CMYK to RGB formula of Photoshop

查看:414
本文介绍了Photoshop的CMYK到RGB公式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在哪里可以得到photoshop用于将rgb转换为cmyk的公式? 我知道网络上有一些公式,但是photoshop不使用此公式.它将转换不同的颜色.

Is there a place where I can get the formula which photoshop uses to convert rgb to cmyk? I know there are formulas on the web, but photoshop does not use this formula. It converts the collors different.

有人可以告诉我photoshop的公式吗?

Can someone tell me the photoshop formula?

谢谢!

推荐答案

Photoshop最有可能使用颜色配置文件将RGB转换为CMYK.

Most likely, Photoshop uses a color profile for converting RGB to CMYK.

如果要在Windows上使用.NET语言进行相同的操作,则可以使用API​​:

If you want to do the same with a .NET language on Windows, then there's an API for it:

float[] colorValues = new float[4];
colorValues[0] = c / 255f;
colorValues[1] = m / 255f;
colorValues[2] = y / 255f;
colorValues[3] = k / 255f;

System.Windows.Media.Color color = Color.FromValues(colorValues,
    new Uri(@"C:\Users\me\Documents\ISOcoated_v2_300_eci.icc"));
System.Drawing.Color rgbColor = System.Drawing.Color.FromArgb(color.R, color.G, color.B);

请注意,使用了来自两个不同名称空间的两个不同的Color类.您可能需要添加PresentationCore DLL作为参考.

Note that two different Color classes from two different namespaces are used. And you probably need to add the PresentationCore DLL as a reference.

在这种特定情况下,将使用ISO Coated v2 300%(ECI)配置文件.可以从 eci.org 的下载部分下载.它是包含多个配置文件的较大ZIP文件的一部分.

In this particular case, the ISO Coated v2 300% (ECI) profile is used. It can be downloaded from the downloads section of eci.org. It's part of a bigger ZIP file containing several profiles.

如果您需要将完整的图像从CMYK转换为RGB,则在同一命名空间中还有一些特殊的类也使用颜色配置文件.

If you need to convert a complete image from CMYK to RGB, there are special classes in the same namespace that use a color profile as well.

有一个不错的在线小应用程序,用于测试带有颜色配置文件的 CMYK颜色转换.

There's a nice little online app for testing the CMYK color conversion with a color profile.

这篇关于Photoshop的CMYK到RGB公式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆