System.Drawing.Common 10.0.0-preview.7.25380.108

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
ClosedXML
ClosedXML is a .NET library for reading, manipulating and writing Excel 2007+ (.xlsx, .xlsm) files. It aims to provide an intuitive and user-friendly interface to dealing with the underlying OpenXML API.
13
ClosedXML
ClosedXML is a .NET library for reading, manipulating and writing Excel 2007+ (.xlsx, .xlsm) files. It aims to provide an intuitive and user-friendly interface to dealing with the underlying OpenXML API.
14
ClosedXML
ClosedXML is a .NET library for reading, manipulating and writing Excel 2007+ (.xlsx, .xlsm) files. It aims to provide an intuitive and user-friendly interface to dealing with the underlying OpenXML API.
15
ClosedXML
ClosedXML is a .NET library for reading, manipulating and writing Excel 2007+ (.xlsx, .xlsm) files. It aims to provide an intuitive and user-friendly interface to dealing with the underlying OpenXML API.
19
ClosedXML
ClosedXML makes it easier for developers to create Excel 2007+ (.xlsx, .xlsm, etc) files. It provides a nice object oriented way to manipulate the files (similar to VBA) without dealing with the hassles of XML Documents. It can be used by any .NET language like C# and VisualBasic.NET.
13
ClosedXML
ClosedXML makes it easier for developers to create Excel 2007+ (.xlsx, .xlsm, etc) files. It provides a nice object oriented way to manipulate the files (similar to VBA) without dealing with the hassles of XML Documents. It can be used by any .NET language like C# and VisualBasic.NET.
14
ClosedXML
ClosedXML makes it easier for developers to create Excel 2007+ (.xlsx, .xlsm, etc) files. It provides a nice object oriented way to manipulate the files (similar to VBA) without dealing with the hassles of XML Documents. It can be used by any .NET language like C# and VisualBasic.NET.
15
ClosedXML
ClosedXML makes it easier for developers to create Excel 2007+ (.xlsx, .xlsm, etc) files. It provides a nice object oriented way to manipulate the files (similar to VBA) without dealing with the hassles of XML Documents. It can be used by any .NET language like C# and VisualBasic.NET.
16
ClosedXML
Package Description
15
GemBox.Spreadsheet
GemBox.Spreadsheet is a .NET component that enables developers to read, write, convert and print spreadsheet files (XLSX, XLS, ODS, CSV, HTML, PDF or XPS) from their .NET applications using one simple API.
15
Microsoft.EntityFrameworkCore.SqlServer
Microsoft SQL Server database provider for Entity Framework Core.
14
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
17
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.
14

.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.1 1 18.12.2025
10.0.0 1 18.12.2025
10.0.0-rc.2.25502.107 3 25.10.2025
10.0.0-rc.1.25451.107 4 16.09.2025
10.0.0-preview.7.25380.108 1 18.12.2025
10.0.0-preview.6.25358.103 2 06.08.2025
10.0.0-preview.5.25277.114 4 11.06.2025
10.0.0-preview.4.25258.110 6 31.05.2025
10.0.0-preview.3.25173.2 6 01.05.2025
10.0.0-preview.2.25163.9 6 01.05.2025
10.0.0-preview.1.25080.3 8 14.03.2025
9.0.11 1 18.12.2025
9.0.10 3 25.10.2025
9.0.9 4 16.09.2025
9.0.8 5 20.08.2025
9.0.7 5 04.08.2025
9.0.6 6 21.06.2025
9.0.5 9 31.05.2025
9.0.4 9 01.05.2025
9.0.3 10 13.03.2025
9.0.2 10 13.03.2025
9.0.1 11 23.01.2025
9.0.0 11 11.01.2025
9.0.0-rc.2.24474.1 9 18.10.2024
9.0.0-rc.1.24451.1 7 24.01.2025
9.0.0-preview.7.24405.4 8 17.08.2024
9.0.0-preview.6.24327.6 7 15.01.2025
9.0.0-preview.5.24306.5 9 28.07.2024
9.0.0-preview.4.24267.1 9 04.07.2024
9.0.0-preview.3.24172.9 7 15.01.2025
9.0.0-preview.2.24128.3 8 15.07.2024
9.0.0-preview.1.24081.2 8 24.07.2024
8.0.22 1 18.12.2025
8.0.21 3 25.10.2025
8.0.20 4 16.09.2025
8.0.19 4 16.09.2025
8.0.18 5 05.08.2025
8.0.17 6 21.06.2025
8.0.16 9 31.05.2025
8.0.15 9 01.05.2025
8.0.14 10 13.03.2025
8.0.13 10 13.03.2025
8.0.12 12 23.01.2025
8.0.11 10 30.01.2025
8.0.10 9 23.01.2025
8.0.8 10 29.01.2025
8.0.7 11 23.01.2025
8.0.6 13 04.07.2024
8.0.5 11 04.07.2024
8.0.4 13 19.07.2024
8.0.3 11 23.01.2025
8.0.2 11 23.01.2025
8.0.1 14 16.07.2024
8.0.0 11 04.07.2024
8.0.0-rc.2.23479.14 7 23.01.2025
8.0.0-rc.1.23419.5 7 20.07.2024
8.0.0-preview.7.23375.5 10 04.07.2024
8.0.0-preview.6.23329.4 8 16.07.2024
8.0.0-preview.5.23280.5 7 16.01.2025
8.0.0-preview.4.23259.4 8 15.01.2025
8.0.0-preview.2.23128.3 9 19.07.2024
8.0.0-preview.1.23110.8 6 20.07.2024
7.0.0 8 27.07.2024
7.0.0-rc.2.22472.3 10 04.07.2024
7.0.0-rc.1.22426.10 7 23.01.2025
7.0.0-preview.7.22375.6 7 24.01.2025
7.0.0-preview.6.22324.4 9 21.07.2024
7.0.0-preview.5.22301.12 9 26.07.2024
7.0.0-preview.4.22229.4 8 17.07.2024
7.0.0-preview.3.22175.4 9 24.01.2025
7.0.0-preview.2.22152.2 9 21.07.2024
7.0.0-preview.1.22076.8 9 20.07.2024
6.0.0 13 26.06.2024
6.0.0-rc.2.21480.5 9 19.07.2024
6.0.0-rc.1.21451.13 8 28.01.2025
6.0.0-preview.7.21377.19 8 18.07.2024
6.0.0-preview.6.21352.12 8 24.09.2024
6.0.0-preview.5.21301.5 8 04.07.2024
6.0.0-preview.4.21253.7 9 23.01.2025
6.0.0-preview.3.21201.4 9 24.07.2024
6.0.0-preview.2.21154.6 9 25.07.2024
6.0.0-preview.1.21102.12 9 23.01.2025
5.0.3 12 30.07.2024
5.0.2 11 17.07.2024
5.0.1 11 04.07.2024
5.0.0 8 04.07.2024
5.0.0-rc.2.20475.5 8 23.07.2024
5.0.0-rc.1.20451.14 8 04.07.2024
5.0.0-preview.8.20407.11 8 30.07.2024
5.0.0-preview.7.20364.11 6 24.09.2024
5.0.0-preview.6.20305.6 7 15.01.2025
5.0.0-preview.5.20278.1 10 04.07.2024
5.0.0-preview.4.20251.6 8 19.07.2024
5.0.0-preview.3.20214.6 6 17.01.2025
5.0.0-preview.2.20160.6 6 04.07.2024
5.0.0-preview.1.20120.5 9 26.07.2024
4.7.3 8 19.07.2024
4.7.2 11 21.07.2024
4.7.1 9 20.07.2024
4.7.0 10 26.07.2024
4.7.0-preview3.19551.4 12 04.07.2024
4.7.0-preview2.19523.17 7 28.01.2025
4.7.0-preview1.19504.10 7 28.01.2025
4.6.2 10 27.01.2025
4.6.1 11 04.07.2024
4.6.0 12 17.07.2024
4.6.0-rc1.19456.4 8 24.01.2025
4.6.0-preview9.19421.4 9 15.07.2024
4.6.0-preview9.19416.11 6 13.03.2025
4.6.0-preview8.19405.3 8 04.07.2024
4.6.0-preview7.19362.9 8 04.07.2024
4.6.0-preview6.19303.8 5 04.07.2024
4.6.0-preview6.19264.9 8 04.07.2024
4.6.0-preview5.19224.8 7 28.01.2025
4.6.0-preview4.19212.13 8 21.07.2024
4.6.0-preview3.19128.7 9 26.07.2024
4.6.0-preview.19073.11 10 21.07.2024
4.6.0-preview.18571.3 7 23.01.2025
4.5.2 10 29.01.2025
4.5.1 12 04.07.2024
4.5.0 10 29.01.2025
4.5.0-rc1 11 19.07.2024
4.5.0-preview2-26406-04 7 15.01.2025
4.5.0-preview1-26216-02 8 04.07.2024
4.5.0-preview1-25914-04 7 25.07.2024
4.5.0-preview1-25718-03 7 28.01.2025