System.Drawing.Common 9.0.0-preview.1.24081.2

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
Aspose.Cells
A powerful and fast library written in C# for manipulating and converting Excel(XLS, XLSX,XLSB), ODS, CSV,JSON and HTML files.
99
Aspose.Cells
A powerful and fast library written in C# for manipulating and converting Excel(XLS, XLSX,XLSB), ODS, CSV,JSON and HTML files.
253
FastReport.Compat
Common compatible types for FastReport.Net
6,087
FastReport.Core
FastReport.Core is a full-featured reporting solution for .Net Core and .Net Framework 4.x. Various report objects will allow your report to look exactly how you want it to: 13 types of bands, 25 types of barcodes, table object, diagram, maps, shapes, line, PolyLine, Polygon and many more. FastReport.Core supports export to various popular formats, such as PDF/A, Excel, Word, Open Office, HTML, CSV, Json, XAML, ZPL, etc.
3,921
FastReport.DataVisualization
Charting library
6,073
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.
721
Quantum.Framework.Core.StandardLib
Package Description
98
Quantum.Framework.Core.StandardLib
Package Description
102
Quantum.Framework.Core.StandardLib
Package Description
103
Quantum.Framework.Core.StandardLib
Package Description
104
Quantum.Framework.Core.StandardLib
Package Description
106
Quantum.Framework.Core.StandardLib
Package Description
116
Quantum.Framework.Core.StandardLib
Package Description
127
Quantum.Framework.Core.StandardLib
Package Description
166
Quantum.Framework.Core.StandardLib
Package Description
176
Quantum.Framework.Core.StandardLib
Package Description
184
Quantum.Framework.Core.StandardLib
Package Description
203
SoapCore
SOAP protocol middleware for ASP.NET Core
159
ThoughtWorks.QRCode.Standard
二维码识别生成类库ThoughtWorks.QRCode标准版 ThoughtWorks.QRCode很好用,但是该类库不支持标准库 于是我通过反编译dll,做了个标准版,并依赖引用了System.Drawing.Common 另外我发现当解析数据过长,或者QRCodeVersion>=30时,会抛出异常, 这个我做了修复,使用自动QRCodeVersion,也就是这个属性无需赋值,可以参考readme里面的使用示例 作者haoersheng没有留联系方式,如有侵权请联系我删除!!!
1,721

.NET Framework 4.6.2

  • No dependencies.

.NET 8.0

.NET 9.0

.NET Standard 2.0

  • No dependencies.

Version Downloads Last updated
10.0.0-rc.2.25502.107 3 10/21/2025
10.0.0-rc.1.25451.107 5 09/11/2025
10.0.0-preview.7.25380.108 4 08/15/2025
10.0.0-preview.6.25358.103 12 07/19/2025
10.0.0-preview.5.25277.114 10 06/08/2025
10.0.0-preview.4.25258.110 12 05/17/2025
10.0.0-preview.3.25173.2 15 04/13/2025
10.0.0-preview.2.25163.9 14 03/31/2025
10.0.0-preview.1.25080.3 16 03/04/2025
9.0.10 2 10/21/2025
9.0.9 7 09/11/2025
9.0.8 7 08/13/2025
9.0.7 11 07/11/2025
9.0.6 12 06/14/2025
9.0.5 12 05/18/2025
9.0.4 17 04/13/2025
9.0.3 17 03/15/2025
9.0.2 18 03/07/2025
9.0.1 20 01/20/2025
9.0.0 29 11/24/2024
9.0.0-rc.2.24474.1 20 11/04/2024
9.0.0-rc.1.24451.1 22 11/23/2024
9.0.0-preview.7.24405.4 20 11/25/2024
9.0.0-preview.6.24327.6 21 11/04/2024
9.0.0-preview.5.24306.5 18 01/02/2025
9.0.0-preview.4.24267.1 42 05/23/2024
9.0.0-preview.3.24172.9 38 04/23/2024
9.0.0-preview.2.24128.3 44 03/24/2024
9.0.0-preview.1.24081.2 31 03/12/2024
8.0.21 2 10/20/2025
8.0.20 5 09/15/2025
8.0.19 3 08/13/2025
8.0.18 7 07/11/2025
8.0.17 10 06/14/2025
8.0.16 9 05/18/2025
8.0.15 26 04/13/2025
8.0.14 13 03/15/2025
8.0.13 26 02/18/2025
8.0.12 18 02/01/2025
8.0.11 26 11/24/2024
8.0.10 23 11/06/2024
8.0.8 30 11/04/2024
8.0.7 27 11/04/2024
8.0.6 22 11/04/2024
8.0.5 31 05/16/2024
8.0.4 30 05/08/2024
8.0.3 32 05/19/2024
8.0.2 32 04/26/2024
8.0.1 29 01/10/2024
8.0.0 31 12/29/2023
8.0.0-rc.2.23479.14 26 10/12/2023
8.0.0-rc.1.23419.5 32 09/29/2023
8.0.0-preview.7.23375.5 41 04/26/2024
8.0.0-preview.6.23329.4 27 11/20/2024
8.0.0-preview.5.23280.5 38 07/27/2023
8.0.0-preview.4.23259.4 31 05/16/2024
8.0.0-preview.2.23128.3 26 04/08/2023
8.0.0-preview.1.23110.8 31 07/20/2023
7.0.0 31 02/09/2023
7.0.0-rc.2.22472.3 28 05/03/2024
7.0.0-rc.1.22426.10 27 06/01/2024
7.0.0-preview.7.22375.6 16 01/02/2025
7.0.0-preview.6.22324.4 21 11/04/2024
7.0.0-preview.5.22301.12 41 06/11/2023
6.0.2-mauipre.1.22102.15 27 05/25/2024
6.0.2-mauipre.1.22054.8 30 05/09/2024
6.0.0-preview.7.21377.19 29 05/30/2024
6.0.0-preview.6.21352.12 27 04/25/2024
6.0.0-preview.5.21301.5 23 11/23/2024
6.0.0-preview.3.21201.4 20 11/05/2024
5.0.0-preview.5.20278.1 20 11/18/2024
5.0.0-preview.1.20120.5 23 11/06/2024
4.7.0-preview3.19551.4 27 06/01/2024
4.7.0-preview1.19504.10 24 04/26/2024
4.6.0-rc1.19456.4 23 06/14/2022
4.6.0-preview6.19264.9 32 06/09/2022
4.5.1 44 06/01/2024
4.5.0-rc1 24 05/24/2024
4.5.0-preview1-25718-03 32 04/26/2024