WriteableBitmapEx in console application?

Deadly 提交于 2019-12-24 08:58:50

问题


I was wondering if it's possible to use the WriteableBitmap class / the WriteableBitmapEx framework in an ordinary C# console application? I have tried to add it via nuget and also included a using statement for System.Windows.Media.Imaging, but the type is not being recognized.


回答1:


The System.Windows.Media.Imaging namespace resides in the PresentationCore.dll. In your project explorer, right click on References and pick "Add Reference...", then chose PresentationCore.



来源:https://stackoverflow.com/questions/15297603/writeablebitmapex-in-console-application

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