I'm want to convert a CMYK image to a RGB image using VisualC++6.0 and CMM.
The code looks like this:
Input :
inputPixels - a structure with the pixels from the image
profile1 - char* the name for the CMYK file profile
profile2 - char* the name for the RGB file profile
My answer won't be code based, cause I don't know how to directly display a CMYK image. But I know that to convert an CMYK image to RGB values you just do the following
CMY2RGB:
--> RED = 1-C
--> GREEN = 1-M
--> BLUE = 1-Y ,
since the RGB ans CMY color spaces are complements. Before doing that though, you have to convert CMYK to CMY by adding the "black" (K) value to the CMY values. The black value is the minimum of the other 3 values:
No he wants to convert the image using ICC profiles color conversion. I have the same problem when I convert from CMYK to RGB. My code is similar to yours. The result is not what I expect. If you find the cause to the problem please post it.
Bookmarks