使用内存作为后备存储来读取和写入数据---MemoryStream
作者:互联网
https://blog.csdn.net/grand_duke/article/details/123045155
lsimage 引用至上篇文章
Image backBitmap = System.Drawing.Image.FromStream(ms);
创建一个图像对象,数据源为图片数据.
string path = Directory.GetCurrentDirectory() + @"\Information\";
if (!Directory.Exists(path))
{
Directory.CreateDirectory(path);
}
创建一个保存路径.
标签:duke,MemoryStream,数据源,Image,---,内存,创建,Directory,path 来源: https://blog.csdn.net/grand_duke/article/details/123047274