System.Drawing.Common 9.0.7

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.
709
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.
323
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
64
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
45
Aspose.Cells
A powerful and fast library written in C# for manipulating and converting Excel(XLS, XLSX,XLSB), ODS, CSV,JSON and HTML files.
39
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
36
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.
36
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
35
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 as well as .NET Standard.
35
Aspose.Cells
A powerful and fast library written in C# for manipulating and converting Excel(XLS, XLSX,XLSB), ODS, CSV,JSON and HTML files.
34
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. When using NuGet 3.x this package requires at least version 3.4.
34
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 as well as .NET Standard.
34
Aspose.Cells
A powerful and fast library written in C# for manipulating and converting Excel(XLS, XLSX,XLSB), ODS, CSV,JSON and HTML files.
33
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.
33
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 as well as .NET Standard.
33
Aspose.Cells
A powerful and fast library written in C# for manipulating and converting Excel(XLS, XLSX,XLSB), ODS, CSV,JSON and HTML files.
32
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 as well as .NET Standard.
32

.NET Framework 4.6.2

  • No dependencies.

.NET 8.0

.NET 9.0

.NET Standard 2.0

  • No dependencies.

Version Downloads Last updated
11.0.0 5 11/21/2026
11.0.0-rc.3.26522.148 4 10/27/2026
11.0.0-rc.2.26504.105 5 10/15/2026
11.0.0-rc.1.26425.128 19 09/16/2026
11.0.0-preview.7.26381.103 16 08/12/2026
11.0.0-preview.6.26359.118 16 07/15/2026
11.0.0-preview.5.26302.115 34 06/14/2026
11.0.0-preview.4.26230.115 38 05/14/2026
11.0.0-preview.3.26207.106 29 04/15/2026
11.0.0-preview.2.26159.112 19 07/01/2026
11.0.0-preview.1.26104.118 43 04/17/2026
10.0.15 4 11/23/2026
10.0.14 3 10/30/2026
10.0.13 4 10/14/2026
10.0.12 15 09/11/2026
10.0.11 12 08/12/2026
10.0.10 12 07/16/2026
10.0.9 30 06/25/2026
10.0.8 14 05/14/2026
10.0.7 36 04/27/2026
10.0.6 17 04/16/2026
10.0.5 28 04/15/2026
10.0.4 26 04/29/2026
10.0.3 39 05/29/2026
10.0.2 32 01/16/2026
10.0.1 37 12/12/2025
10.0.0 15 11/11/2025
10.0.0-rc.2.25502.107 27 10/14/2025
10.0.0-rc.1.25451.107 30 09/16/2025
10.0.0-preview.7.25380.108 37 08/14/2025
10.0.0-preview.6.25358.103 19 07/16/2025
10.0.0-preview.5.25277.114 11 06/10/2025
10.0.0-preview.4.25258.110 11 07/06/2026
10.0.0-preview.3.25173.2 20 05/04/2025
10.0.0-preview.2.25163.9 33 03/24/2025
10.0.0-preview.1.25080.3 34 02/28/2025
9.0.23 4 11/21/2026
9.0.22 5 11/21/2026
9.0.21 3 11/10/2026
9.0.20 10 09/10/2026
9.0.19 11 08/12/2026
9.0.18 15 07/17/2026
9.0.17 43 06/26/2026
9.0.16 36 06/26/2026
9.0.15 36 06/26/2026
9.0.14 29 06/26/2026
9.0.13 31 06/26/2026
9.0.12 17 06/26/2026
9.0.11 33 06/26/2026
9.0.10 30 06/26/2026
9.0.9 29 06/30/2026
9.0.8 20 06/26/2026
9.0.7 16 06/28/2026
9.0.6 12 06/28/2026
9.0.5 49 06/27/2026
9.0.4 37 10/13/2025
9.0.3 20 03/15/2025
9.0.2 31 02/16/2025
9.0.1 39 01/24/2025
9.0.0 42 11/14/2024
9.0.0-rc.2.24474.1 35 10/15/2024
9.0.0-rc.1.24451.1 17 09/20/2024
9.0.0-preview.7.24405.4 37 08/14/2024
9.0.0-preview.6.24327.6 43 07/11/2024
9.0.0-preview.5.24306.5 24 06/14/2024
9.0.0-preview.4.24267.1 13 07/14/2024
9.0.0-preview.3.24172.9 28 07/01/2026
9.0.0-preview.2.24128.3 23 04/07/2024
9.0.0-preview.1.24081.2 33 06/25/2026
8.0.34 5 11/23/2026
8.0.33 4 11/07/2026
8.0.32 9 10/14/2026
8.0.31 14 09/19/2026
8.0.30 12 08/12/2026
8.0.29 14 07/17/2026
8.0.28 13 06/26/2026
8.0.27 28 06/26/2026
8.0.26 20 06/26/2026
8.0.25 34 06/25/2026
8.0.24 38 06/26/2026
8.0.23 27 06/26/2026
8.0.22 30 06/26/2026
8.0.21 28 06/26/2026
8.0.20 24 06/26/2026
8.0.19 24 06/26/2026
8.0.18 31 06/26/2026
8.0.17 34 06/26/2026
8.0.16 22 06/26/2026
8.0.15 35 06/26/2026
8.0.14 28 06/26/2026
8.0.13 30 06/26/2026
8.0.12 13 06/26/2026
8.0.11 12 06/26/2026
8.0.10 106 11/05/2024
8.0.8 22 06/29/2026
8.0.7 17 06/25/2026
8.0.6 23 06/29/2024
8.0.5 20 05/20/2024
8.0.4 14 08/02/2024
8.0.3 25 06/24/2024
8.0.2 25 05/05/2024
8.0.1 13 02/09/2024
8.0.0 17 01/17/2024
8.0.0-rc.2.23479.14 20 01/18/2024
8.0.0-rc.1.23419.5 35 11/23/2024
8.0.0-preview.7.23375.5 35 08/09/2025
8.0.0-preview.6.23329.4 41 03/18/2024
8.0.0-preview.5.23280.5 41 10/06/2024
8.0.0-preview.4.23259.4 21 06/15/2025
8.0.0-preview.2.23128.3 35 04/11/2025
8.0.0-preview.1.23110.8 13 04/05/2024
7.0.0 72 01/05/2024
7.0.0-rc.2.22472.3 22 07/15/2024
7.0.0-rc.1.22426.10 23 10/03/2024
7.0.0-preview.7.22375.6 19 05/25/2025
7.0.0-preview.6.22324.4 9 06/30/2026
7.0.0-preview.5.22301.12 21 02/26/2024
7.0.0-preview.4.22229.4 33 01/25/2025
7.0.0-preview.3.22175.4 30 01/04/2024
7.0.0-preview.2.22152.2 33 02/27/2025
7.0.0-preview.1.22076.8 15 12/19/2023
6.0.2-mauipre.1.22102.15 36 04/06/2024
6.0.2-mauipre.1.22054.8 22 08/06/2024
6.0.0 83 08/15/2022
6.0.0-rc.2.21480.5 15 04/20/2025
6.0.0-rc.1.21451.13 14 09/10/2024
6.0.0-preview.7.21377.19 17 02/14/2024
6.0.0-preview.6.21352.12 11 05/03/2024
6.0.0-preview.5.21301.5 36 09/17/2024
6.0.0-preview.4.21253.7 38 01/06/2024
6.0.0-preview.3.21201.4 15 02/27/2025
6.0.0-preview.2.21154.6 40 08/15/2024
6.0.0-preview.1.21102.12 36 09/18/2024
5.0.3 27 12/22/2023
5.0.2 39 02/02/2025
5.0.1 24 03/25/2024
5.0.0 323 08/05/2021
5.0.0-rc.2.20475.5 46 12/28/2023
5.0.0-rc.1.20451.14 24 06/21/2024
5.0.0-preview.8.20407.11 30 06/25/2026
5.0.0-preview.7.20364.11 33 06/26/2026
5.0.0-preview.6.20305.6 39 07/17/2024
5.0.0-preview.5.20278.1 33 02/15/2024
5.0.0-preview.4.20251.6 12 03/12/2025
5.0.0-preview.3.20214.6 22 04/17/2025
5.0.0-preview.2.20160.6 15 10/10/2024
5.0.0-preview.1.20120.5 14 06/29/2026
4.7.3 34 01/29/2025
4.7.2 47 02/18/2024
4.7.1 47 12/13/2023
4.7.0 710 02/28/2021
4.7.0-preview3.19551.4 34 07/17/2025
4.7.0-preview2.19523.17 20 04/05/2024
4.7.0-preview1.19504.10 17 01/12/2024
4.6.2 35 02/01/2024
4.6.1 27 12/21/2023
4.6.0 31 01/16/2024
4.6.0-rc1.19456.4 17 03/20/2025
4.6.0-preview9.19421.4 15 10/11/2024
4.6.0-preview9.19416.11 35 03/16/2025
4.6.0-preview8.19405.3 27 02/21/2025
4.6.0-preview7.19362.9 33 06/29/2026
4.6.0-preview6.19303.8 37 10/14/2024
4.6.0-preview6.19264.9 36 10/09/2024
4.6.0-preview5.19224.8 40 04/13/2025
4.6.0-preview4.19212.13 32 10/11/2024
4.6.0-preview3.19128.7 14 11/28/2024
4.6.0-preview.19073.11 30 04/06/2024
4.6.0-preview.18571.3 35 10/04/2024
4.5.2 27 12/16/2023
4.5.1 36 02/09/2024
4.5.0 30 03/12/2024
4.5.0-rc1 32 03/08/2024
4.5.0-preview2-26406-04 24 04/18/2024
4.5.0-preview1-26216-02 46 10/24/2024
4.5.0-preview1-25914-04 27 04/04/2024
4.5.0-preview1-25718-03 12 11/17/2024