更改图像保存路径 [英] Change the image saving path
本文介绍了更改图像保存路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建图像副本并将其保存在其他位置.
解决方案
您的意思是复制文件吗?如果是这样,请参阅 http://msdn.microsoft.com/en-us/library/c6cfw35a.aspx [ ^ ]
我想您的意思是将磁盘上的映像复制到另一个位置,还是将内存中的映像保存到另一个位置?
两者都很容易:
File.Copy(sourcePath, destinationPath);
myImage.Save(destinationPath, ImageFormat.Jpeg);
i want to create a copy of image and save it in another location. Is there a way to do that?
解决方案
Do you mean copy a file? If so, see http://msdn.microsoft.com/en-us/library/c6cfw35a.aspx[^]
I assume you mean either to copy an image on disk to another location, or to save an image in memory to another location?
Either is easy:
File.Copy(sourcePath, destinationPath);
myImage.Save(destinationPath, ImageFormat.Jpeg);
这篇关于更改图像保存路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文