【发布时间】:2016-03-18 10:48:46
【问题描述】:
我需要在图像显示之前对其进行灰度化。图片来自服务器。我使用 BitmapImage 作为 Image 的 Source。我可以使用 BitmapImage 显示图像。
现在我需要对图像进行灰度化,因为我发现可以使用 WritableBitmap 将其转换为灰度。我使用 WritableBitmapEx.WinRT 库进行灰度。
但问题是我无法在 WinRT 中将 BitmapImage 转换为 WritableBitmap。
欢迎提出任何建议。
谢谢
【问题讨论】:
-
看到了!它从文件中获取流
标签: windows-runtime windows-phone-8.1 winrt-xaml bitmapimage writablebitmap