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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Darsh VeerPosted Mar 24, 2016, 12:18 PM
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
vikas potekarPosted Mar 23, 2016, 6:25 AM
Darsh VeerPosted Feb 24, 2016, 6:37 AM
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
Shubham KumarPosted Feb 11, 2016, 5:57 AM
vikas potekarPosted Feb 11, 2016, 5:29 AM
Shubham KumarPosted Feb 11, 2016, 4:36 AM