How to check if MemoryStream can convert to Bitmap in C# ?

Posted by Thyphuong on Stack Overflow See other posts from Stack Overflow or by Thyphuong
Published on 2010-03-27T04:20:00Z Indexed on 2010/03/27 4:23 UTC
Read the original article Hit count: 211

Filed under:

As the question mentioned, I have a memorystream from a Byte[] ByteArr. How can I check if it can convert to a bitmap before using it with Bitmap myImg = new Bitmap(memorystream).

© Stack Overflow or respective owner

Related posts about c#