[英]Create WriteableBitmap in windows phone app 8.1?
iam creating qr code scan in windows phone app. IAM在Windows Phone应用中创建二维码扫描。
using (IRandomAccessStream fileStream = await file.OpenAsync(FileAccessMode.Read))
{
wrb = await Windows.UI.Xaml.Media.Imaging.BitmapFactory.New(1, 1).FromStream(fileStream);
}
in the above code I am getting error in "BitmapFactory". 在上面的代码中,“ BitmapFactory”中出现错误。
it shows below error: 它显示以下错误:
The type or namespace name 'BitmapFactory' does not exist in the namespace 'Windows.UI.Xaml.Media.Imaging' (are you missing an assembly reference?)
类型或名称空间名称“ BitmapFactory”在名称空间“ Windows.UI.Xaml.Media.Imaging”中不存在(您是否缺少程序集引用?)
You are missing the WritableBitmapEx.WinRT.dll
. 您缺少
WritableBitmapEx.WinRT.dll
。 It is located in the Sample Projects bin -> Debug Folder. 它位于Sample Projects bin-> Debug Folder中。 If it is already listed in your references delete it and add it again.
如果您的参考资料中已经列出了它,请将其删除并再次添加。 Then it will work!
然后它将起作用!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.