Hi All,
Is there any way to find out image mode like bitmap, grayscale, cmyk etc in winforms using C#.NET??
Thanks in Advance!!!
Vikas P
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Shubham KumarRank #621 · 3.8K reputationPosted Feb 10, 2016, 11:36 PM EST
vikas potekar20 reputationPosted Feb 11, 2016, 12:29 AM EST
Shubham KumarRank #621 · 3.8K reputationPosted Feb 11, 2016, 12:57 AM EST
Darsh Veer4 reputationPosted Feb 24, 2016, 1:37 AM EST
https://msdn.microsoft.com/en-us/library/system.drawing.image.flags%28v=vs.110%29.aspx
Note that in some cases, you might need to use a programming toolkit (leadtools SDK) to load
Non-GDI+ supported images (like lossless JPEG, some types of TIFF, etc.) and then find out the image mode (RGB, CMYK, etc.).
You can find more details here:
http://support.leadtools.com/SupportPortal/CS/forums/37022/showpost.aspx
vikas potekar20 reputationPosted Mar 23, 2016, 2:25 AM EDT
Darsh Veer4 reputationPosted Mar 24, 2016, 8:18 AM EDT
I am not sure if there is any commercially free third party tool kit that provides a similar feature, but the System.Drawing.dll (image.Flags property) is already included and available with Microsoft Visual Studio libraries. So to my knowledge, there are no additional fees or charges to use it. You can contact Microsoft support for additional help:
https://msdn.microsoft.com/en-us/hh361695.aspx
Also, I found the following MSDN forum that might help:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/0d539c4d-e076-4395-b7cb-9e08a9c6e651/get-color-mode-cmyk-or-rgb-of-an-jpeg-image-?forum=csharpgeneral