Bitmap class not found in UWP windows 10

試著忘記壹切 提交于 2019-12-18 09:06:06

问题


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.

Is there any alternative to this class in uwp?

Or I am missing any reference of Bitmap class?


回答1:


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!




回答2:


Try to have a look on this WriteableBitmap class: https://msdn.microsoft.com/en-us/library/br243259



来源:https://stackoverflow.com/questions/34837456/bitmap-class-not-found-in-uwp-windows-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!