2015-01-04 120 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