How to identify CMYK images using C#

后端 未结 3 809
我在风中等你
我在风中等你 2020-12-31 01:32

Does anybody know how to properly identify CMYK images using C#? I found how to do it using ImageMagick, but I need a .NET solution. I found 3 code snippets online, only one

3条回答
  •  醉梦人生
    2020-12-31 01:56

    I ran into the same issues and if your using .net 2.0 then BitmapDecoder will not work.. what you want to do is read the file and just plain check to see that what the bytes say the file is.. How to identify CMYK images in ASP.NET using C# Hope this helps someone.

    Cheers - Jeremy

提交回复
热议问题