System.Drawing.Common 9.0.8

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.
12
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 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
EPPlus.System.Drawing
Package Description
20
EPPlus.System.Drawing
Package Description
27
FastReport.OpenSource
FastReport Open Source is an open source reporting solution for .Net Core and .Net Framework. Various report objects will allow your report to look exactly how you want it to: 13 types of bands, 30 types of barcodes, table object, shapes, line, PolyLine, Polygon and many more.
12
FreeSpire.Doc
Free Spire.Doc for .NET is a professional and reliable word component for commercial and personal use. It enables developers to quickly and easily generate, read, write, save, print and convert documents on any .NET applications (ASP.NET, WinForms and Web Service, .NET Core) and it supports in C#, VB.NET. The featured function, conversion allows converting Word documents (Word 97-2003, Word 2007, Word 2010, Word 2013) to commonly used file format, format, such as XML, RTF, TXT, PDF, XPS, EPUB, HTML and Image etc. Free Spire.Doc for.NET is 100% FREE word component. Free Spire.Doc for .NET Features: *No Microsoft Word Automation *Speed and Easy-to-Use *Batch of Great Functions *High Performance *Totally Free Main functions High quality conversion Rich Word Document Features Process Pre-Existing Word Documents Other Technical Features
12
IronPdf
IronPDF allows developers to create, edit and extract PDF content in .NET Standard, Core and Framework projects. The Iron PDF library takes the frustration out of generating PDF documents by not relying on proprietary APIs. “Html-To-Pdf” renders pixel-perfect PDFs from open standard document types: HTML, JS, CSS, JPG, PNG, GIF, and SVG. In short, it uses the skills that developers already possess. Generate PDFs: * “Html-To-Pdf” creates PDF files from HTML, CSS, JavaScript, and images. * “Url-To-Pdf” generates PDFs from existing HTML pages by simply providing the URL. * “ASPX-To-Pdf” converts ASP.NET web forms directly into downloadable PDFs. * “Image-To-Pdf” creates PDF documents from image files. * HTML forms become PDF forms. Extract data from PDFs: * Render image files from PDF documents with PDF to Image functionality. * Fill and read data from PDF forms. * Extract text and images from existing PDFs. Edit PDFs: * Load and parse PDF documents. * Merge, Split and Manipulate PDFs to edit PDF structure and content. * Add Page Numbers, Headers, Footers, Annotations, Bookmarks, Watermarks, Text & Image Assets. * Edit, Stamp and Watermark PDF files with text, images and HTML. * Apply HTML backgrounds to PDF pages. Secure PDFs: * Add & Remove PDF owners and user passwords. * Set PDF metadata and security permissions. * Provide Digital Signatures. Fully Supports: * .NET Framework 4.0 or above on Windows & Azure * .NET Standard 2.0 & Core 2 & 3 on Windows, MacOS & Linux & Azure * Cloud hosting services including Microsoft Azure, Docker, and AWS IronPDF can be used within ASP.NET Core, Standard and Framework projects for MVC, Web, Console, Cloud, Service, Function & Desktop Applications. For code examples, tutorials and documentation visit https://ironpdf.com/ You can email us at developers@ironsoftware.com for support directly from our code team. We offer licensing and extensive support for commercial deployment projects.
13
Microsoft.Identity.Web.TokenCache
This package bring token cache serializers for MSAL.NET confidential client applications.
24
NPOI
.NET port of Apache POI | Contact us on telegram: https://t.me/npoidevs
12
NPOI
.NET port of Apache POI | Contact us on telegram: https://t.me/npoidevs
14
NPOI
.NET port of Apache POI | Contact us on telegram: https://t.me/npoidevs
22
QRCoder
QRCoder is a simple library, written in C#.NET, which enables you to create QR codes.
18
Svg
Public fork of the C# SVG rendering library on codeplex: https://svg.codeplex.com/ This started out as a minor modification to enable the writing of proper SVG strings. But now after almost two years we have so many fixes and improvements that we decided to share our current codebase to the public in order to improve it even further. So please feel free to fork it and open pull requests for any fix, improvement or feature you add. License: Microsoft Public License: https://svg.codeplex.com/license
14
Syncfusion.EJ2.PdfViewer.AspNet.Core.Linux
Syncfusion Pdf Viewer for Essential JS 2 Asp.Net Core Linux is a .NET class library for converting PDF document into images and extracting PDF documents for Linux Operating System.
12
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
178
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.
26
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.
556

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