Search code examples
c#.netbitmapdata

.net bitmap file type limitations


Given the line:

Bitmap bitmap = new Bitmap(stream);

where stream is a System.IO.Stream, are there any limitations on the image file type e.g png, jpg, gif etc that can be handled. i.e are all image file/stream header info clear enough to say "I am an image".

I haven't run into any yet, but have only being using the pretty standard ones so far.

Thanks


Solution

  • Here is an overview of what is supported: http://msdn.microsoft.com/en-us/library/at62haz6.aspx

    All the file types mentioned there are GDI+ which are supported by the .NET framework