积极答复者
Image控件Source在SD卡读取和手机读取

问题
-
this.img1.Source = new BitmapImage(new Uri("D:\\Pictures\\Camera Roll\\WP_20140913_001.jpg", UriKind.RelativeOrAbsolute)); 在SD卡里面的能成功读取
但是 this.img1.Source = new BitmapImage(new Uri("C:\\Data\\user\\Public\\Pictures\\Camera Roll\\WP_20140915_001.jpg", UriKind.RelativeOrAbsolute)); 在手机目录就不能读取了。
有什么解决方法。能在手机目录也成功读取
答案
-
楼主 你好,
建议参考下面两篇文档:
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn611857.aspx
http://msdn.microsoft.com/en-us/library/windows/apps/jj720573(v=vs.105).aspx
谢谢!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 Leo (Apple) YangModerator 2014年9月22日 2:39
-
读取手机目录中的图片需要用到WP内置的图片选择器(PhotoChooserTask)
具体请参考文档:http://msdn.microsoft.com/library/windows/apps/microsoft.phone.tasks.photochoosertask(v=vs.105).aspx
以及代码示例: http://msdn.microsoft.com/zh-CN/library/windows/apps/hh394019(v=vs.105).aspx
- 已标记为答案 Leo (Apple) YangModerator 2014年9月22日 2:39
全部回复
-
楼主 你好,
建议参考下面两篇文档:
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn611857.aspx
http://msdn.microsoft.com/en-us/library/windows/apps/jj720573(v=vs.105).aspx
谢谢!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 Leo (Apple) YangModerator 2014年9月22日 2:39
-
读取手机目录中的图片需要用到WP内置的图片选择器(PhotoChooserTask)
具体请参考文档:http://msdn.microsoft.com/library/windows/apps/microsoft.phone.tasks.photochoosertask(v=vs.105).aspx
以及代码示例: http://msdn.microsoft.com/zh-CN/library/windows/apps/hh394019(v=vs.105).aspx
- 已标记为答案 Leo (Apple) YangModerator 2014年9月22日 2:39