簡體   English   中英

移動模擬器10上的GrayscaleEffect()上的Lumia Imaging SDK 3.0快速入門錯誤

[英]Lumia Imaging SDK 3.0 Quick Start error on GrayscaleEffect() on Mobile Emulator 10

我正在測試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移動設備的物理設備進行測試。 我錯過了什么?

感謝您的反饋意見。 我可以在使用Mobile Emulator 10.0.10586時重現您的問題。 但是當我在真實設備上測試它時,樣本效果很好。 該設備的操作系統版本也是10586.此問題可能與Mobile Emulator有關。 我們已向SDK團隊報告此事。 一旦得到進一步的信息,我會在這里更新。

目前,您可以使用本地計算機測試代碼,或者如果您有物理設備,則可以在設備上進行測試。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM