Is there any easy way to achive this?
I need this because i get the CMYK values from a file and i need to use those values in a xhtml file by creating tags like this:
<item style="background-color:rgb(211,199,142);"> some text </item>
Is there any easy way to achive this?
I need this because i get the CMYK values from a file and i need to use those values in a xhtml file by creating tags like this:
<item style="background-color:rgb(211,199,142);"> some text </item>
Yes, using the CMYK to RGB formulae:
double red = 255*(1-cyan)*(1-black);
double green = 255*(1-magenta)*(1-black);
double blue = 255*(1-yellow)*(1-black);
Where CMYK values range from 0 to 1 and RGB values range from 0 to 255.