System.Drawing.Common 10.0.0-rc.2.25502.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
Syncfusion.Pdf.Imaging.Net.Core
Syncfusion Essential PDF Imaging is a .NET standard PDF library used to draw the image files to PDF in any .NET Core applications. Key features: • Supports drawing JPEG, PNG, GIF, BMP, and TIFF images to PDF document. Learn more: https://www.syncfusion.com/pdf-framework/net-core Documentation: http://help.syncfusion.com/file-formats/pdf/ Support: Incident: https://www.syncfusion.com/support/directtrac/incidents/newincident Forums: https://www.syncfusion.com/forums/windowsforms This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA (https://www.syncfusion.com/eula/es/). To acquire a license, you can purchase one at https://www.syncfusion.com/sales/products or start a free 30-day trial here (https://www.syncfusion.com/account/manage-trials/start-trials). © Copyright 2021 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
8
Syncfusion.Pdf.Imaging.Net.Core
Syncfusion Essential PDF Imaging is a .NET standard PDF library used to draw the image files to PDF in any .NET Core applications. Key features: • Supports drawing JPEG, PNG, GIF, BMP, and TIFF images to PDF document. Learn more: https://www.syncfusion.com/pdf-framework/net-core Documentation: http://help.syncfusion.com/file-formats/pdf/ Support: Incident: https://www.syncfusion.com/support/directtrac/incidents/newincident Forums: https://www.syncfusion.com/forums/windowsforms This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA (https://www.syncfusion.com/eula/es/). To acquire a license, you can purchase one at https://www.syncfusion.com/sales/products or start a free 30-day trial here (https://www.syncfusion.com/account/manage-trials/start-trials). © Copyright 2020 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
8
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.
8
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
8
jasmin.lib
Jasmin - The Software Robot
7
Syncfusion.XpsToPdfConverter.Net.Core
Syncfusion Essential XPS To PDF Converter is a .NET standard PDF library used to convert XPS files to PDF Document in any .NET Core applications. This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA (https://www.syncfusion.com/eula/es/). To acquire a license, you can purchase one at https://www.syncfusion.com/sales/products or start a free 30-day trial here (https://www.syncfusion.com/account/manage-trials/start-trials). © Copyright 2019 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
7
Syncfusion.XpsToPdfConverter.Net.Core
Syncfusion Essential XPS To PDF Converter is a .NET standard PDF library used to convert XPS files to PDF Document in any .NET Core applications. This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA (https://www.syncfusion.com/eula/es/). To acquire a license, you can purchase one at https://www.syncfusion.com/sales/products or start a free 30-day trial here (https://www.syncfusion.com/account/manage-trials/start-trials). © Copyright 2020 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
7
Syncfusion.XpsToPdfConverter.Net.Core
Syncfusion Essential XPS To PDF Converter is a .NET standard PDF library used to convert XPS files to PDF Document in any .NET Core applications. This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA (https://www.syncfusion.com/eula/es/). To acquire a license, you can purchase one at https://www.syncfusion.com/sales/products or start a free 30-day trial here (https://www.syncfusion.com/account/manage-trials/start-trials). © Copyright 2021 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
7
Syncfusion.Pdf.Net.Core
Syncfusion Essential PDF is a .NET standard PDF library used to create, read, and edit PDF files in any .NET Core applications. Key features: • Create, edit, fill, and flatten the AcroForm form fields. • Merge, split, rearrange, and remove pages. • Create accessible PDF (PDF/UA) from scratch. • Watermark or stamp PDF documents with text or images. • Extract text. • Create richly formatted tables from different data source easily. More styling options are available. • Protect PDF with the advanced encryption standard (PDF 2.0). Change password and permission are also available. • Advanced digital signing with PFX, HSM and Windows Store. Support for Online Certificate Status Protocol (OCSP), Certificate Revocation List (CRL). • Add, edit, and remove 17+ supported annotations. • Pre-defined and JavaScript actions are available. • Add, edit, and delete bookmark from the PDF. • Add, edit, delete, and extract attachments from the PDF. Learn more: https://www.syncfusion.com/pdf-framework/net-core Documentation: http://help.syncfusion.com/file-formats/pdf/ Support: Incident: https://www.syncfusion.com/support/directtrac/incidents/newincident Forums: https://www.syncfusion.com/forums/windowsforms This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA (https://www.syncfusion.com/eula/es/). To acquire a license, you can purchase one at https://www.syncfusion.com/sales/products or start a free 30-day trial here (https://www.syncfusion.com/account/manage-trials/start-trials). © Copyright 2019 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
7
Syncfusion.XpsToPdfConverter.Net.Core
Syncfusion Essential XPS To PDF Converter is a .NET standard PDF library used to convert XPS files to PDF Document in any .NET Core applications. This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA (https://www.syncfusion.com/eula/es/). To acquire a license, you can purchase one at https://www.syncfusion.com/sales/products or start a free 30-day trial here (https://www.syncfusion.com/account/manage-trials/start-trials). © Copyright 2023 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
7
Syncfusion.Pdf.Imaging.Net.Core
Syncfusion Essential PDF Imaging is a .NET standard PDF library used to draw the image files to PDF in any .NET Core applications. Key features: • Supports drawing JPEG, PNG, GIF, BMP, and TIFF images to PDF document. Learn more: https://www.syncfusion.com/pdf-framework/net-core Documentation: http://help.syncfusion.com/file-formats/pdf/ Support: Incident: https://www.syncfusion.com/support/directtrac/incidents/newincident Forums: https://www.syncfusion.com/forums/windowsforms This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA (https://www.syncfusion.com/eula/es/). To acquire a license, you can purchase one at https://www.syncfusion.com/sales/products or start a free 30-day trial here (https://www.syncfusion.com/account/manage-trials/start-trials). © Copyright 2020 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
7
Syncfusion.Pdf.Imaging.Net.Core
Syncfusion Essential PDF Imaging is a .NET standard PDF library used to draw the image files to PDF in any .NET Core applications. Key features: • Supports drawing JPEG, PNG, GIF, BMP, and TIFF images to PDF document. Learn more: https://www.syncfusion.com/pdf-framework/net-core Documentation: http://help.syncfusion.com/file-formats/pdf/ Support: Incident: https://www.syncfusion.com/support/directtrac/incidents/newincident Forums: https://www.syncfusion.com/forums/windowsforms This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA (https://www.syncfusion.com/eula/es/). To acquire a license, you can purchase one at https://www.syncfusion.com/sales/products or start a free 30-day trial here (https://www.syncfusion.com/account/manage-trials/start-trials). © Copyright 2021 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
7

.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.2.25502.107 2 10/20/2025
10.0.0-rc.1.25451.107 2 10/20/2025
10.0.0-preview.7.25380.108 3 09/05/2025
10.0.0-preview.6.25358.103 4 07/17/2025
10.0.0-preview.5.25277.114 6 06/26/2025
10.0.0-preview.4.25258.110 7 06/26/2025
10.0.0-preview.3.25173.2 7 06/26/2025
10.0.0-preview.2.25163.9 6 03/19/2025
10.0.0-preview.1.25080.3 8 03/19/2025
9.0.10 1 10/20/2025
9.0.9 2 09/16/2025
9.0.8 2 09/16/2025
9.0.7 5 07/11/2025
9.0.6 6 06/26/2025
9.0.5 6 06/26/2025
9.0.4 5 06/26/2025
9.0.3 8 03/19/2025
9.0.2 7 02/20/2025
9.0.1 6 02/02/2025
9.0.0 6 02/02/2025
9.0.0-rc.2.24474.1 5 02/02/2025
9.0.0-rc.1.24451.1 5 02/02/2025
9.0.0-preview.7.24405.4 5 02/02/2025
9.0.0-preview.6.24327.6 6 02/02/2025
9.0.0-preview.5.24306.5 5 02/02/2025
9.0.0-preview.4.24267.1 6 02/02/2025
9.0.0-preview.3.24172.9 3 02/02/2025
9.0.0-preview.2.24128.3 4 02/02/2025
9.0.0-preview.1.24081.2 3 02/02/2025
8.0.21 2 10/20/2025
8.0.20 2 09/16/2025
8.0.19 3 09/05/2025
8.0.18 4 07/11/2025
8.0.17 6 06/26/2025
8.0.16 6 06/26/2025
8.0.15 4 07/07/2025
8.0.14 6 03/19/2025
8.0.13 7 02/20/2025
8.0.12 6 02/01/2025
8.0.11 6 02/01/2025
8.0.10 7 02/01/2025
8.0.8 4 02/02/2025
8.0.7 4 02/02/2025
8.0.6 7 02/02/2025
8.0.5 5 02/02/2025
8.0.4 5 02/02/2025
8.0.3 6 02/01/2025
8.0.2 5 02/01/2025
8.0.1 7 02/01/2025
8.0.0 5 02/01/2025
8.0.0-rc.2.23479.14 5 02/01/2025
8.0.0-rc.1.23419.5 6 02/01/2025
8.0.0-preview.7.23375.5 5 02/01/2025
8.0.0-preview.6.23329.4 4 02/01/2025
8.0.0-preview.5.23280.5 5 02/01/2025
8.0.0-preview.4.23259.4 6 02/01/2025
8.0.0-preview.2.23128.3 7 02/01/2025
8.0.0-preview.1.23110.8 5 02/01/2025
7.0.0 3 02/01/2025
7.0.0-rc.2.22472.3 4 02/01/2025
7.0.0-rc.1.22426.10 4 02/01/2025
7.0.0-preview.7.22375.6 5 02/01/2025
7.0.0-preview.6.22324.4 6 02/01/2025
7.0.0-preview.5.22301.12 6 02/01/2025
7.0.0-preview.4.22229.4 4 02/01/2025
7.0.0-preview.3.22175.4 5 02/01/2025
7.0.0-preview.2.22152.2 5 02/01/2025
7.0.0-preview.1.22076.8 5 02/01/2025
6.0.0 7 02/01/2025
6.0.0-rc.2.21480.5 7 02/01/2025
6.0.0-rc.1.21451.13 5 02/01/2025
6.0.0-preview.7.21377.19 6 02/01/2025
6.0.0-preview.6.21352.12 6 02/01/2025
6.0.0-preview.5.21301.5 6 02/01/2025
6.0.0-preview.4.21253.7 5 02/01/2025
6.0.0-preview.3.21201.4 3 02/01/2025
6.0.0-preview.2.21154.6 4 02/01/2025
6.0.0-preview.1.21102.12 4 02/01/2025
5.0.3 6 02/01/2025
5.0.2 6 02/01/2025
5.0.1 6 02/01/2025
5.0.0 5 02/01/2025
5.0.0-rc.2.20475.5 7 02/01/2025
5.0.0-rc.1.20451.14 6 02/01/2025
5.0.0-preview.8.20407.11 6 02/01/2025
5.0.0-preview.7.20364.11 6 02/01/2025
5.0.0-preview.6.20305.6 5 02/01/2025
5.0.0-preview.5.20278.1 5 02/01/2025
5.0.0-preview.4.20251.6 6 02/01/2025
5.0.0-preview.3.20214.6 6 02/01/2025
5.0.0-preview.2.20160.6 6 02/01/2025
5.0.0-preview.1.20120.5 6 02/01/2025
4.7.3 5 02/01/2025
4.7.2 5 02/01/2025
4.7.1 3 02/01/2025
4.7.0 5 02/01/2025
4.7.0-preview3.19551.4 5 02/01/2025
4.7.0-preview2.19523.17 4 02/01/2025
4.7.0-preview1.19504.10 5 02/01/2025
4.6.2 4 02/01/2025
4.6.1 4 02/01/2025
4.6.0 7 02/01/2025
4.6.0-rc1.19456.4 6 02/01/2025
4.6.0-preview9.19421.4 6 02/01/2025
4.6.0-preview9.19416.11 7 02/01/2025
4.6.0-preview8.19405.3 4 02/01/2025
4.6.0-preview7.19362.9 6 02/01/2025
4.6.0-preview6.19303.8 6 02/01/2025
4.6.0-preview6.19264.9 4 02/01/2025
4.6.0-preview5.19224.8 5 02/01/2025
4.6.0-preview4.19212.13 5 02/01/2025
4.6.0-preview3.19128.7 4 02/01/2025
4.6.0-preview.19073.11 5 02/01/2025
4.6.0-preview.18571.3 6 02/01/2025
4.5.2 4 02/01/2025
4.5.1 7 02/01/2025
4.5.0 5 02/01/2025
4.5.0-rc1 5 02/01/2025
4.5.0-preview2-26406-04 5 02/01/2025
4.5.0-preview1-26216-02 8 02/01/2025
4.5.0-preview1-25914-04 6 02/01/2025
4.5.0-preview1-25718-03 3 02/01/2025