System.Drawing.Common 10.0.0-rc.1.25451.107

System.Drawing.Common

The System.Drawing.Common package allows .NET Core and .NET 6+ applications to access GDI+ graphics functionality. This package is especially useful for porting .NET Framework applications that rely on the System.Drawing namespace.

Getting Started

To get started with System.Drawing.Common, install it using the NuGet Package Manager, the .NET CLI, or by editing your project file directly.

NOTE: If you are developing a WinForms application, you do not need to install the System.Drawing.Common package separately (to this end, you use the Sdk attribute for the Project element like <Project Sdk="Microsoft.NET.Sdk"> in the .csproj or the .vbproj file and then specify <UseWindowsForms>true</UseWindowsForms>). This package is then automatically included as part of the .NET SDK for WinForms Apps, which means you can start using the System.Drawing namespace right away in your WinForms projects.

Usage

The following examples demonstrate some basic tasks you can accomplish with System.Drawing.Common.

Create a Simple Bitmap and Save it

C#

using System.Drawing;

class Program
{
    static void Main()
    {
        using (Bitmap bitmap = new Bitmap(100, 100))
        {
            using (Graphics g = Graphics.FromImage(bitmap))
            {
                g.Clear(Color.Red);
            }
            bitmap.Save("output.bmp");
        }
    }
}

VB

Imports System.Drawing

Module Program
    Sub Main()
        Using bitmap As New Bitmap(100, 100)
            Using g As Graphics = Graphics.FromImage(bitmap)
                g.Clear(Color.Red)
            End Using
            bitmap.Save("output.bmp")
        End Using
    End Sub
End Module

Additional Documentation

For more in-depth tutorials and API references, you can check the following resources:

Feedback

Showing the top 20 packages that depend on System.Drawing.Common.

Packages Downloads
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag When using NuGet 3.x this package requires at least version 3.4.
5,175
ElectronNET.API
Building cross platform electron based desktop apps with .NET Core and ASP.NET Core. This package contains the API to access the "native" electron API.
226
IKVM
Java SE 8 Virtual Machine for .NET
89
IKVM
Java SE 8 Virtual Machine for .NET
88
IKVM
Java SE 8 Virtual Machine for .NET
87
IKVM
Java SE 8 Virtual Machine for .NET
86
ElectronNET.API
Building cross platform electron based desktop apps with .NET Core and ASP.NET Core. This package contains the API to access the "native" electron API.
84
IKVM
Java SE 8 Virtual Machine for .NET
83
IKVM
Java SE 8 Virtual Machine for .NET
82
IKVM
Java SE 8 Virtual Machine for .NET
80
IKVM
Java SE 8 Virtual Machine for .NET
79
IKVM
Java SE 8 Virtual Machine for .NET
78
IKVM
Java SE 8 Virtual Machine for .NET
77
IKVM
Java SE 8 Virtual Machine for .NET
76
IKVM
Java SE 8 Virtual Machine for .NET
75
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard.
74

.NET Framework 4.6.2

  • No dependencies.

.NET 8.0

.NET 9.0

.NET 10.0

.NET Standard 2.0

  • No dependencies.

Version Downloads Last updated
10.0.0-rc.1.25451.107 3 09/10/2025
10.0.0-preview.7.25380.108 7 08/18/2025
10.0.0-preview.6.25358.103 7 07/19/2025
10.0.0-preview.5.25277.114 13 06/12/2025
10.0.0-preview.4.25258.110 21 05/13/2025
10.0.0-preview.3.25173.2 24 04/11/2025
10.0.0-preview.2.25163.9 28 03/20/2025
10.0.0-preview.1.25080.3 25 02/26/2025
9.0.9 1 09/10/2025
9.0.8 8 08/10/2025
9.0.7 10 07/13/2025
9.0.6 14 06/14/2025
9.0.5 15 05/17/2025
9.0.4 17 04/09/2025
9.0.3 22 03/13/2025
9.0.2 24 02/13/2025
9.0.1 32 01/20/2025
9.0.0 29 11/13/2024
9.0.0-rc.2.24474.1 31 10/12/2024
9.0.0-rc.1.24451.1 29 09/10/2024
9.0.0-preview.7.24405.4 42 08/21/2024
9.0.0-preview.6.24327.6 44 07/13/2024
9.0.0-preview.5.24306.5 53 06/12/2024
9.0.0-preview.4.24267.1 44 05/21/2024
9.0.0-preview.3.24172.9 44 04/11/2024
9.0.0-preview.2.24128.3 44 03/18/2024
9.0.0-preview.1.24081.2 42 02/15/2024
8.0.20 3 09/10/2025
8.0.19 4 08/10/2025
8.0.18 9 07/14/2025
8.0.17 12 06/14/2025
8.0.16 18 05/17/2025
8.0.15 19 04/09/2025
8.0.14 21 03/13/2025
8.0.13 27 02/12/2025
8.0.12 31 01/19/2025
8.0.11 33 11/13/2024
8.0.10 31 10/12/2024
8.0.8 40 08/21/2024
8.0.7 47 07/11/2024
8.0.6 50 05/29/2024
8.0.5 52 05/14/2024
8.0.4 50 04/10/2024
8.0.3 57 03/17/2024
8.0.2 46 03/07/2024
8.0.1 50 01/23/2024
8.0.0 52 11/16/2023
8.0.0-rc.2.23479.14 70 10/14/2023
8.0.0-rc.1.23419.5 57 09/14/2023
8.0.0-preview.7.23375.5 57 08/09/2023
8.0.0-preview.6.23329.4 63 08/16/2023
8.0.0-preview.5.23280.5 58 07/11/2023
8.0.0-preview.4.23259.4 55 09/14/2023
8.0.0-preview.2.23128.3 65 03/25/2023
8.0.0-preview.1.23110.8 51 08/09/2023
7.0.0 55 11/30/2022
7.0.0-rc.2.22472.3 51 08/20/2023
7.0.0-rc.1.22426.10 51 10/11/2022
7.0.0-preview.7.22375.6 57 08/23/2022
7.0.0-preview.6.22324.4 62 11/30/2022
7.0.0-preview.5.22301.12 66 07/17/2022
7.0.0-preview.4.22229.4 52 11/30/2022
7.0.0-preview.3.22175.4 55 11/30/2022
7.0.0-preview.2.22152.2 49 12/23/2022
7.0.0-preview.1.22076.8 50 11/30/2022
6.0.2-mauipre.1.22102.15 60 09/09/2022
6.0.2-mauipre.1.22054.8 64 02/06/2023
6.0.0 59 11/10/2021
6.0.0-rc.2.21480.5 56 02/08/2023
6.0.0-rc.1.21451.13 52 02/27/2023
6.0.0-preview.7.21377.19 49 08/17/2023
6.0.0-preview.6.21352.12 45 08/05/2023
6.0.0-preview.5.21301.5 59 12/02/2022
6.0.0-preview.4.21253.7 71 09/14/2022
6.0.0-preview.3.21201.4 54 08/11/2023
6.0.0-preview.2.21154.6 50 08/06/2023
6.0.0-preview.1.21102.12 58 10/19/2022
5.0.3 59 04/17/2023
5.0.2 57 02/15/2023
5.0.1 61 05/28/2022
5.0.0 62 02/01/2021
5.0.0-rc.2.20475.5 48 12/08/2022
5.0.0-rc.1.20451.14 49 08/28/2023
5.0.0-preview.8.20407.11 46 11/30/2022
5.0.0-preview.7.20364.11 58 08/07/2023
5.0.0-preview.6.20305.6 57 11/21/2022
5.0.0-preview.5.20278.1 54 07/26/2023
5.0.0-preview.4.20251.6 50 11/21/2021
5.0.0-preview.3.20214.6 59 11/21/2021
5.0.0-preview.2.20160.6 64 08/10/2023
5.0.0-preview.1.20120.5 62 08/06/2023
4.7.3 58 03/06/2023
4.7.2 53 05/16/2023
4.7.1 57 06/19/2023
4.7.0 60 06/06/2022
4.7.0-preview3.19551.4 44 08/09/2023
4.7.0-preview2.19523.17 46 09/24/2023
4.7.0-preview1.19504.10 55 11/21/2021
4.6.2 68 11/02/2022
4.6.1 50 02/27/2023
4.6.0 5,196 04/06/2023
4.6.0-rc1.19456.4 53 08/18/2023
4.6.0-preview9.19421.4 52 07/24/2022
4.6.0-preview9.19416.11 53 08/04/2023
4.6.0-preview8.19405.3 49 06/20/2023
4.6.0-preview7.19362.9 48 08/15/2023
4.6.0-preview6.19303.8 51 11/06/2022
4.6.0-preview6.19264.9 53 11/30/2022
4.6.0-preview5.19224.8 53 02/01/2023
4.6.0-preview4.19212.13 57 02/15/2023
4.6.0-preview3.19128.7 67 07/10/2023
4.6.0-preview.19073.11 54 07/24/2023
4.6.0-preview.18571.3 50 02/17/2023
4.5.2 61 02/01/2023
4.5.1 74 11/30/2022
4.5.0 50 02/27/2023
4.5.0-rc1 59 10/03/2022
4.5.0-preview2-26406-04 59 11/21/2021
4.5.0-preview1-26216-02 49 05/28/2022
4.5.0-preview1-25914-04 52 09/27/2023
4.5.0-preview1-25718-03 52 08/15/2023