1

我正在测试 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 移动版的物理设备。我错过了什么?

4

1 回答 1

0

感谢您的反馈意见。我可以在使用 Mobile Emulator 10.0.10586 时重现您的问题。但是当我在真实设备上测试它时,该示例运行良好。该设备的操作系统版本也是 10586。此问题可能与 Mobile Emulator 有关。我们已将此情况报告给 SDK 团队。一旦我得到更多信息,我会在这里更新。

现在,您可以使用本地机器测试您的代码,或者如果您有物理设备,您可以在您的设备上进行测试。

于 2016-06-21T04:47:54.527 回答