I'm creating a program which draws the histograms of a certain photo (bitmap).
I start from a Bitmap image, which gets and draws the histogram of that bitmap. Next I do a contrast stretch (which shows the result of the photo and the new histogram). My program also provides the picture with only R, G or B values (also draws the histogram of those).
Now I am at the part where I am stuck. I want to convert the RGB values to the CMYK values. I have a method for that, but I can't draw the resulting picture out of these CMYK values (for example: picture only with cyan value, pictures only with magenta value, etc.).
For as far as I know, it doesn't seem to draw the bitmap with the CMYK color model.
Now my question is, is there a possible way to draw the bitmap picture with only the cyan values? And is it possible without any libraries? If not, which librar(y)ies should I use?
Update:
Could this be the right histogram for the Yellow channel? Or do I still need to do some other calculation for it?