System.IO.MemoryStream stream = new System.IO.MemoryStream(b, true);
stream.Write(b, 0, b.Length);
image=new Bitmap(stream);
stream.Close();
数据流到图片
最新推荐文章于 2022-09-18 19:39:09 发布
本文介绍了一种使用C#中的MemoryStream类来处理图片的方法。具体步骤包括:创建MemoryStream实例,将字节数组写入内存流,从内存流中读取数据创建Bitmap对象,最后关闭内存流。
6493

被折叠的 条评论
为什么被折叠?



