简体   繁体   中英

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. But it's not. I have no System.Windows.Media namespace. 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".

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.

Hope this is what you were looking for. See if this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM