In this article I will explain with an example, how to use Bitmap class in .Net Core 2.1.
 
 
Explanation
Bitmap class is not available, since System.Drawing namespace it is not available in .Net Core.
How to use Bitmap class in .Net Core 2.1
 
Thus, in order to use Bitmap class, you need to install the System.Drawing.Common package from Nuget.
 
 
Downloading System.Drawing.Common package
You will need to install the System.Drawing.Common package using the following command.
Install-Package System.Drawing.Common -Version 4.7.0
 
How to use Bitmap class in .Net Core 2.1
 
How to use Bitmap class in .Net Core 2.1
 
Once it System.Drawing.Common is successfully installed, you will need to import the System.Drawing namespace.
As you can see, the Bitmap class is available to use.
How to use Bitmap class in .Net Core 2.1
 
 
Downloads


Other available versions