在UWP Windows 10中找不到位图类 [英] Bitmap class not found in UWP windows 10
问题描述
我正在为Windows 10开发一个图像处理应用程序.我已经在线搜索了与图像处理有关的内容.我发现许多使用Bitmap类处理图像的资源.但是在uwp中,不存在此类.当我尝试在代码中使用它时,它会显示Generate Bitmap class.
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屋!