从图片框中保存C#照片 [英] C# photo saving from picturebox

查看:108
本文介绍了从图片框中保存C#照片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将PictureBox中的图片保存到我的图片/图片的路径中,但我经常收到错误。



我收到错误:



Http://i.hizliresim.com/Np116Y.png

System.Runtime.InteropServices.ExternalException :



如何查找文档路径,因为每台计算机上每个用户的名称不同?



谢谢。



我的尝试:





Http://i.hizliresim.com/Np116Y.png

解决方案

@是一个文字字符串 - 您不需要使用 \\ 。此链接解释了C#标准字符串和文字字符串之间的区别:字符串文字(C#) [ ^ ]

I want to save the picture in the PictureBox to the path of my picture / picture but I am constantly getting an error.

I received the error:

Http://i.hizliresim.com/Np116Y.png
System.Runtime.InteropServices.ExternalException:

How can I find the document path because each user's name is different on each computer?

Thank you.

What I have tried:


Http://i.hizliresim.com/Np116Y.png

解决方案

@"" is a literal string - you don't need to use \\. This link explains the difference between C# standard and literal strings: String literals (C#)[^]


这篇关于从图片框中保存C#照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆