在 UWP windows 10 中找不到位图类 [英] Bitmap class not found in UWP windows 10

查看:18
本文介绍了在 UWP windows 10 中找不到位图类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为 Windows 10 开发一个图像处理应用程序.我在网上搜索了与图像处理相关的内容.我发现了许多使用 Bitmap 类来操作图像的资源.但是在 uwp 中,不存在这样的类.当我尝试在我的代码中使用它时,它说生成位图类.

I am developing an image processing app for windows 10. I have searched online related to the image processing. I have found many resources that use Bitmap class for manipulating images. But in uwp, there is no such class exists. When I try to use it in my code, it says Generate Bitmap class.

在 uwp 中,这个类有什么替代方法吗?

Is there any alternative to this class in uwp?

或者我缺少对 Bitmap 类的任何引用?

Or I am missing any reference of Bitmap class?

推荐答案

不久前我正在开发一个需要 Bitmap 类功能的应用程序.我很遗憾地意识到,正如您刚刚所做的那样,它在 WinRT/UWP 下不可用.我们所拥有的只是位图、Edgaras 建议的 WriteableBitmap,以及 - 谢天谢地 - WriteableBitmapEx.这是一个非常好的库,提供了很多图像处理功能.它帮了我很多,解决了我所有的问题.希望它也能帮到你!

I was developing an app not so long ago that needed the features of the Bitmap class. I sadly realized as you just did that it's not available under WinRT/UWP. All we have is Bitmap, WriteableBitmap as Edgaras suggested, and - thank the heavens- WriteableBitmapEx. It's a very good library providing a lot of image processing functions. It helped me a lot and solved all of my problems. Hope it will help you too!

这篇关于在 UWP windows 10 中找不到位图类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆