2015-01-04 122 views
1

我創建了Windows Phone 8.1(Windows運行時)應用程序,需要使用來自System.Windows.Media.Imaging命名空間中的一些類(更準確地說是BitmapDecoder類),但的Visual Studio 2013說:「類型或命名空間‘媒體’不存在命名空間存在‘System.Windows’(是否缺少程序集引用?)」。System.Windows.Media在Windows手機應用程序8.1

有什麼建議嗎?

+1

你不能做到這一點。使用Windows運行時中的等效API。 – SLaks

+0

謝謝!什麼是System.Windows.Media.Imaging命名空間的等價物? – Mika

+0

@Mika你有沒有試過Google? –

回答

0

你嘗試Windows.Graphics.Imaging.BitmapDecoder?你不提正是你所需要BitmapDecoder其特點,所以很難說是否會爲你工作。

+0

謝謝你,這會爲我工作。我猜WriteableBitmap在Windows運行時不可用。 – Mika