I have an asp.net page where I am letting the user upload an image file using a FileUpload control. I allow them to upload png, gif and jpeg images. I want to limit the type of image they can upload, specifically I want to only allow them to upload images which have a colour mode on RGB.
How can I check the colour mode of an uploaded file programatically in .Net?