Re: Convert CMYK values to RGB values?
| From: | Shawn McKenzie | Date: | Sat, 10 Jan 2009 01:03:56 +0000 |
| Subject: | Re: Convert CMYK values to RGB values? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-285927@lists.php.net to get a copy of this message | ||
ceo@l-i-e.com wrote:
> Short Answer:
>
> You can't.
> :-)
>
> http://en.wikipedia.org/wiki/CMYK
>
> Long Answer:
> You probably can, but not in some way that makes sense to discuss here on PHP-general.
>
> The external links in the above article should get you started.
>
May not always come out with the best colors, but the rough formula is:
Black = minimum(1-Red,1-Green,1-Blue)
Cyan = (1-Red-Black)/(1-Black)
Magenta = (1-Green-Black)/(1-Black)
Yellow = (1-Blue-Black)/(1-Black)
Write your own little functions to convert.
--
Thanks!
-Shawn
http://www.spidean.com