本文介绍了在Windows Phone App 8.1中创建WriteableBitmap?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Windows Phone应用中创建二维码扫描.
iam creating qr code scan in windows phone app.
using (IRandomAccessStream fileStream = await file.OpenAsync(FileAccessMode.Read))
{
wrb = await Windows.UI.Xaml.Media.Imaging.BitmapFactory.New(1, 1).FromStream(fileStream);
}
在上面的代码中,"BitmapFactory"中出现错误.
in the above code I am getting error in "BitmapFactory".
它显示以下错误:
推荐答案
您缺少WritableBitmapEx.WinRT.dll
.它位于Sample Projects bin-> Debug Folder中.如果您的参考资料中已经列出了它,请将其删除并再次添加.这样就可以了!
You are missing the WritableBitmapEx.WinRT.dll
. It is located in the Sample Projects bin -> Debug Folder. If it is already listed in your references delete it and add it again. Then it will work!
这篇关于在Windows Phone App 8.1中创建WriteableBitmap?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!