Note:
- The
System.Drawingnamespace is not recommended for new development, because it’s not supported within Windows services, ASP.NET Core, and ASP.NET. Attempting to useSystem.Drawingclasses within one of these application types may result in run-time exceptions and diminished service performance. Recommended alternatives include ImageSharp, SkiaSharp, and Windows Imaging Components. - On Windows,
System.Drawingdepends on the GDI+ native library, which is shipped as part of the OS. Some Windows SKUs, like Windows Server Core or Windows Nano, don’t include this native library as part of the OS. Exceptions will be thrown at run time because the library can’t be loaded.
Third Party Products
https://sixlabors.com/products/imagesharp/
Sources:
https://docs.microsoft.com/en-us/dotnet/api/system.drawing?view=net-5.0
Comments