![](/img/trans.png)
[英]Windows phone 8.1 how to convert BitmapImage to grayscale and black&white?
[英]How to convert UIElement (Canvas) content (children) to BitmapImage on Windows Phone?
我正在VS 2013中為Windows Phone 8.1編寫應用程序。我想使用WriteableBitmap,該對象應該位於System.Windows.Media.Imaging命名空間中。 但事實並非如此。 我沒有System.Windows.Media命名空間。 我無法添加參考。 WP8應用程序向導添加了兩個參考:“。Net for Windows應用商店應用程序”和“ Windows Phone 8.1”。
我想念什么嗎?
Windows.UI.Xaml.Media.Imaging.WriteableBitmap
您正在嘗試使用Windows.UI.Xaml.Media.Imaging
來引用NEW XAML API's
OLD SILVERLIGHT API's
, Windows.UI.Xaml.Media.Imaging
一下您將能夠在Windows Phone 8.1中獲取WriteableBitmap類,並且進一步了解此鏈接將為您提供幫助。
希望這就是您想要的。 看看是否有幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.