Saving png stream to bitmap in asp.net
I have a Memory stream in png fo开发者_如何学运维rmat and want to save it to a Bitmap object so that I can extract the pixels. I am using .net 2.0 and cannot use a higher version due to certain restrictions. Can you please help me out ???
Have you looked at the System.Drawing.Bitmap object?
It has a constructor of public Bitmap(Stream stream)
you can then do what you like with the bitmap before calling Save
精彩评论