[英]How to convert UIElement (Canvas) content (children) to BitmapImage on Windows Phone?
I'm writing an app for Windows Phone 8.1 in VS 2013. I'd like to use a WriteableBitmap, which is supposed to be in the System.Windows.Media.Imaging namespace. 我正在VS 2013中为Windows Phone 8.1编写应用程序。我想使用WriteableBitmap,该对象应该位于System.Windows.Media.Imaging命名空间中。 But it's not.
但事实并非如此。 I have no System.Windows.Media namespace.
我没有System.Windows.Media命名空间。 I can't add a reference.
我无法添加参考。 I have two references added by the WP8 app wizard: ".Net for Windows store apps" and "Windows Phone 8.1".
WP8应用程序向导添加了两个参考:“。Net for Windows应用商店应用程序”和“ Windows Phone 8.1”。
Am I missing something? 我想念什么吗?
Windows.UI.Xaml.Media.Imaging.WriteableBitmap
You are trying to reference OLD SILVERLIGHT API's
in NEW XAML API's
, by using Windows.UI.Xaml.Media.Imaging
you will be able to get the WriteableBitmap class in Windows Phone 8.1 & to know more this Link will help you. 您正在尝试使用
Windows.UI.Xaml.Media.Imaging
来引用NEW XAML API's
OLD SILVERLIGHT API's
, Windows.UI.Xaml.Media.Imaging
一下您将能够在Windows Phone 8.1中获取WriteableBitmap类,并且进一步了解此链接将为您提供帮助。
Hope this is what you were looking for. 希望这就是您想要的。 See if this helps.
看看是否有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.