Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 是否在windows phone应用程序8.1中创建可写位图?_C#_Windows Phone 8.1_Writeablebitmap - Fatal编程技术网

C# 是否在windows phone应用程序8.1中创建可写位图?

C# 是否在windows phone应用程序8.1中创建可写位图?,c#,windows-phone-8.1,writeablebitmap,C#,Windows Phone 8.1,Writeablebitmap,iam正在windows phone应用程序中创建二维码扫描 using (IRandomAccessStream fileStream = await file.OpenAsync(FileAccessMode.Read)) { wrb = await Windows.UI.Xaml.Media.Imaging.BitmapFactory.New(1, 1).FromStream(fileStream); } 在上面的代码中,我在“BitmapF

iam正在windows phone应用程序中创建二维码扫描

using (IRandomAccessStream fileStream = await file.OpenAsync(FileAccessMode.Read))
{
     wrb = await Windows.UI.Xaml.Media.Imaging.BitmapFactory.New(1, 1).FromStream(fileStream);                  
}
在上面的代码中,我在“BitmapFactory”中遇到错误

它显示以下错误:

中不存在类型或命名空间名称“BitmapFactory” 命名空间“Windows.UI.Xaml.Media.Imaging”(是否缺少程序集 参考?)


您缺少
可写位图ex.WinRT.dll
。它位于示例项目bin->Debug文件夹中。如果它已经列在您的参考中,请删除它并再次添加。那就行了

请帮助我。@Rafeal Regh我没有找到示例项目bin。请提供路径。您可以在以下文件夹中找到它:在Windows 8\C\QRCODE\u SCANNER\bin中捕获二维码\Debug@Rafeal瑞格,我接受了你以前的帖子。那么现在请帮助我。where writeableBitmapex.WinRT.dll。文件位于提供路径。请选择您下载的文件夹。导航到C#文件夹->QRCODE#U扫描仪->bin->调试。在那里你会找到Dll。如果它不工作,只需注释,但它应该。我试过了,它对我有效:)