Try installing the System.Drawing.Common
NuGet package. This contains Image
and other related types like Bitmap
.
PM> Install-Package System.Drawing.Common
You can also install using the NuGet Package Manager UI accessible by right-clicking the solution in Solution Explorer and choosing Manage NuGet Packages...
Adding a clarification comment from @KonradViltersten:
Traditionally, System.Drawing
was included in the full .NET Framework,
but not .NET Core because System.Drawing
was based on Windows drawing
methods. .NET core was designed to be platform independent and thus
did not include anything that was platform specific (like drawing).
Because this functionality is so requested, MS released a separate assembly that could be installed to provide the functionality
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…