C#.net代码“如何在相机拍摄后在屏幕上显示图像,如何找到图像路径“在Windows Phone 8中 [英] C#.net code for " How can i display Image on the screen after camera capture and How can i find that image path" in Windows Phone 8
问题描述
尊敬的先生/女士,
我遇到了一些问题
我如何在屏幕上显示图片摄像头捕获后如何找到该图像路径。
How can i display Image on the screen after camera capture and How can i find that image path.
我正在使用此代码捕获图像
我不知道如何在屏幕上显示图像
I don't know how can i show the image on the screen
和
它在哪里(捕获的图像)将被存储?如何在Windows Phone 8中显示该图像?
Where it(captured image) will be stored? How can i display that image in Windows Phone 8?
请给我c#.net代码或任何网址。
Please give me c#.net code or any url.
谢谢&问候,
SrinivaaS。
SrinivaaS.
推荐答案
直接来自msdn文档
void cameraCaptureTask_Completed(object sender, PhotoResult e)
{
if (e.TaskResult == TaskResult.OK)
{
MessageBox.Show(e.ChosenPhoto.Length.ToString());
//Code to display the photo on the page in an image control named myImage.
System.Windows.Media.Imaging.BitmapImage bmp = new System.Windows.Media.Imaging.BitmapImage();
bmp.SetSource(e.ChosenPhoto);
myImage.Source = bmp;
}
}
http://msdn.microsoft.com/en -us / library / windowsphone / develop / hh394006%28v = vs.105%29.aspx
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394006%28v=vs.105%29.aspx
这篇关于C#.net代码“如何在相机拍摄后在屏幕上显示图像,如何找到图像路径“在Windows Phone 8中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!