【问题标题】:How to convert UIElement (Canvas) content (children) to BitmapImage on Windows Phone?如何在 Windows Phone 上将 UIElement(Canvas)内容(子项)转换为 BitmapImage?
【发布时间】:2014-07-04 22:16:22
【问题描述】:

我正在为 VS 2013 中的 Windows Phone 8.1 编写应用程序。 我想使用一个 WriteableBitmap,它应该位于 System.Windows.Media.Imaging 命名空间中。 但事实并非如此。 我没有 System.Windows.Media 命名空间。 我无法添加参考。我有两个由 WP8 应用程序向导添加的引用:“.Net for Windows 商店应用程序”和“Windows Phone 8.1”。

我错过了什么吗?

【问题讨论】:

  • 对于 Windows Phone 的引用必须是 .NET,而不是应用商店!

标签: c# windows-phone-8 visual-studio-2013


【解决方案1】:
Windows.UI.Xaml.Media.Imaging.WriteableBitmap

您正在尝试在NEW XAML API's 中引用OLD SILVERLIGHT API's,通过使用Windows.UI.Xaml.Media.Imaging,您将能够在Windows Phone 8.1 中获得WriteableBitmap 类并且了解更多信息,这Link 将对您有所帮助。

希望这就是您想要的。看看这是否有帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多