保存图片和其他相关问题 [英] Saving Pictures and other related questions

查看:92
本文介绍了保存图片和其他相关问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我刚刚开始学习在Windows Phone上进行开发,这是我与保存图片有关的问题.

I am just beginning to learn to develop on windows phone here are my questions related to saving pictures.

1.我在其中一个教程

1. i found this code in one of the tutorials

library.SavePictureToCameraRoll(fileName,e.ImageStream);

library.SavePictureToCameraRoll(fileName, e.ImageStream);

为什么当我查看此内容时文件资料  我看不到SavePictureToCameraRoll方法吗?如果我在错误的页面上,请指向正确的页面.

why is it that when I look in to this documentation  I don't see the SavePictureToCameraRoll method? am I on the wrong page please point me to the right one.

2.如何将相机拍摄任务中拍摄的照片保存到我想要的特定相册中?

2. how do i save a picture taken from camera capture task to a specific album that I want?

3.我在哪里可以找到有关如何从特定相册中检索图片并将其显示在我的应用中的信息.

3. where can i find info on how to to retrieve pictures from a specifc album and display it on my app.

谢谢

推荐答案

1.看起来该特定版本的文档在某个时候被删除了……该功能的行为与MediaLibrary.SavePicture相同,只不过该图片已保存到相机胶卷"中.相册,而不是保存的图片"相册.

1. Looks like the documentation for this specific got deleted at some point... The function behaves the same as MediaLibrary.SavePicture except that the picture is saved to the "Camera Roll" album instead of the "Saved Pictures" album.

2.您只能将其保存到相机胶卷"或保存的图片"专辑.

2. You can only save to "Camera Roll" or "Saved Pictures" albums.

3.您需要从RootPictureAlbum开始逐步浏览PictureAlbum枚举.以下帖子提供了枚举所有图片的示例...不完全是您想要的,但这是一个很好的起点... http://social.msdn.microsoft.com/forums/zh-CN/wphowto/thread/1a2837d8-21ec-4f10-bdf9-0462f0649138

3. You need to walk through the PictureAlbum enumerations starting at the RootPictureAlbum.  The following post gives example of enumerating all pictures... not exactly what you want but it is a good place to start... http://social.msdn.microsoft.com/forums/en-us/wphowto/thread/1a2837d8-21ec-4f10-bdf9-0462f0649138


这篇关于保存图片和其他相关问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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