How to determine image colorspace using WIC?

306 views Asked by At

How can I determine the colorspace of an image using WIC? I want to know if an image is RGB, CMYK or mono(B/W). I would prefer not looking at every color format available.

Why I want to know is I want to use IWICColorContext::InitializeFromFilename method but to give it a proper profile I need to know if the image is RGB, CMYK or mono.

0

There are 0 answers