WIndows universal app with system.drawing and possible alternative

前端 未结 2 1650
南笙
南笙 2020-12-11 12:27

I\'m developing a windows universal app and i need to work with Bitemap but

i cannot seem to reference System.Drawing,

Why cant windows universal app cannot

相关标签:
2条回答
  • 2020-12-11 12:56

    Cross platform System.Drawing

    This may not directly address the question. The project makes System.Drawing available to Linux and Mac osX10. Having support for UWP platform could help the transition to Windows.UI while porting/testing code from WinForm to UWP.

    0 讨论(0)
  • 2020-12-11 13:01

    System.Drawing is the .NET namespace for working with GDI+. This technology is not available for Windows Store apps or universal Windows Apps. See .NET for Windows apps.

    You can make use of the Win2D project for a WinRT wrapper usable from C# for drawing with Direct2D/DirectWrite which are also supported for Windows Store apps and UWP. See Introducing Win2D: GPU accelerated 2D graphics programming in the Windows Runtime.

    You can make use of SharpDX which provides wrappers for Direct2D, DirectWrite, and the Windows Imaging Component (WIC).

    In short: You can't use an existing library that makes use of System.Drawing in a universal Windows Application.

    0 讨论(0)
提交回复
热议问题