Re: Convert CMYK values to RGB values?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ceo@xxxxxxxxx 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux