I am using the API TranslateColors() to convert RGB to CYMK. I could convert it.
In the above sample RGB value is left shifted by 8 and passed to the above function. And the result, CYMK is right shifted by 8.
As I know CYMK values vary from 0 to 1. But the result are more than 1.
Can any one tell me how to get the CYMK values in 0-1.
RGB values are between the range
0-255to get this range between
0-1you will need to do:
basically
make sure the variables used are
floatsordecimals(or anything that supports decimals).