在 WP 8 中,我曾经PhotoCamera
制作相机应用程序并将图像保存在相机胶卷中,我使用了以下方法:
private void cam_CaptureImageAvailable(object sender, ContentReadyEventArgs e)
{
string fileName = "photo.jpg";
MediaLibrary library = new MediaLibrary();
library.SavePictureToCameraRoll(fileName, e.ImageStream);
}
在 WPSL 8.1 中,我使用并且使用相同的样式将图像保存在相机胶卷中,MediaCapture
但我不知道如何ImageStream
从MediaCapture
. e.ImageStream
即使使用其他编程风格保存到相机胶卷,我也愿意接受建议。