首页
学习
活动
专区
圈层
工具
发布

win10 uwp 读取保存WriteableBitmap 、BitmapImage 保存 WriteableBitmap 到文件从文件读 WriteableBitmapIma

(); Image 转byte[] 如果我们的 ImageSource 是 BitmapImage ,那么我们不能使用上面的办法,直接保存 WriteableBitmap ,我们可以使用截图 private...private async TaskBitmapImage> OpenBitmapImageFile(StorageFile file) {...UWP的 BitmapImage 不能转换为 byte[] 或 WriteableBitmap 。这句话是错的。...---- 2017年1月4日21:45:37 ---- 我后来过了几个月,发现我们的 BitmapImage 可以转 byte[] 我们可以通过拿 BitmapImage 的 UriSource 把它转为...我的图片从解决方案获得,大家可以从任意的位置获取,只要可以转换为 IRandomAccessStream var file = await StorageFile.GetFileFromApplicationUriAsync

2.4K10
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到
    领券