【问题标题】:System.Windows.Media in Windows phone 8.1 applicationsWindows phone 8.1 应用程序中的 System.Windows.Media
【发布时间】:2015-01-05 09:09:36
【问题描述】:

我正在创建一个 Windows Phone 8.1(Windows 运行时)应用程序,需要使用 System.Windows.Media.Imaging 命名空间中的一些类(更准确地说是 BitmapDecoder 类),但 Visual Studio 2013 显示“类型或命名空间”命名空间 'System.Windows' 中不存在媒体'(您是否缺少程序集引用?)”。

有什么建议吗?

【问题讨论】:

  • 你不能那样做。使用 Windows 运行时中的等效 API。
  • 谢谢! System.Windows.Media.Imaging 命名空间的等价物是什么?
  • @Mika 你试过用谷歌搜索吗?

标签: c# windows-phone-8.1


【解决方案1】:

你试过Windows.Graphics.Imaging.BitmapDecoder吗?你没有具体提到你需要BitmapDecoder 的哪些功能,所以很难说它是否适合你。

【讨论】:

  • 谢谢,这对我有用。我猜 WriteableBitmap 在 Windows 运行时不可用。
猜你喜欢
  • 1970-01-01
  • 2014-09-07
  • 1970-01-01
  • 2015-03-26
  • 2015-02-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-09-05
相关资源
最近更新 更多