我正在测试 Lumia Imaging SDK 3.0快速入门示例
该示例在我的桌面上运行良好,但在 Mobile Emulator 10 上运行时会产生此错误。
public MainPage()
{
this.InitializeComponent();
double scaleFactor = 1.0;
scaleFactor = DisplayInformation.GetForCurrentView().RawPixelsPerViewPixel;
_writeableBitmap = new WriteableBitmap((int)(Window.Current.Bounds.Width * scaleFactor), (int)(Window.Current.Bounds.Height * scaleFactor));
_thumbnailImageBitmap = new WriteableBitmap((int)OriginalImage.Width, (int)OriginalImage.Height);
_grayscaleEffect = new GrayscaleEffect();
_brightnessEffect = new BrightnessEffect(_grayscaleEffect);
m_renderer = new SwapChainPanelRenderer(_brightnessEffect, SwapChainPanelTarget);
LoadDefaultImageAsync();
}
该行_grayscaleEffect = new GrayscaleEffect();
引发了错误。System.IO.FileNotFoundException
at System.StubHelpers.StubHelpers.GetWinRTFactoryObject(IntPtr pCPCMD)
at Lumia.Imaging.Adjustments.GrayscaleEffect..ctor()
at QuickStart.MainPage..ctor()
at QuickStart.QuickStart_XamlTypeInfo.XamlTypeInfoProvider.Activate_0_MainPage()
at QuickStart.QuickStart_XamlTypeInfo.XamlUserType.ActivateInstance()
我没有用于测试 Windows 10 移动版的物理设备。我错过了什么?