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.