System.Drawing.Common 9.0.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
EPPlus.System.Drawing
Package Description
25
EPPlus.System.Drawing
Package Description
51
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
16
FreeSpire.PDF
As a standalone PDF component, Free Spire.PDF for .NET enables developers to create, write, edit, convert, print, handle and read PDF files on any .NET applications. You can implement rich capabilities to create PDF files from scratch or process existing PDF documents. Many rich features can be supported, such as security setting, PDF text/attachment/image extract, PDF merge/split, metadata update, section and paragraph optimizing, graph/image drawing and inserting, table creation and processing, and importing data etc. Main Functions Only Free Spire.PDF, No Adobe Acrobat installed. Free Spire.PDF for .NET is a totally independent .NET PDF library. It Does NOT require Adobe Acrobat or any other 3rd party software/library installed on system. High Quality PDF File Conversion • Convert Webpage HTML, HTML ASPX to PDF • Convert Image(Jpeg, Jpg, Png, Bmp, Tiff, Gif, EMF, Ico) to PDF • Convert Text to PDF • Convert RTF to PDF • Convert PDF to Image Easily Manipulate document and Form fields • Merge/split PDF documents • Overlay documents. • Import and stamp feature • Booklet feature • Create and fill form field Security features • Protect PDF documents by setting passwords and digital signature. • Decrypt PDF Document • Get and Verify Digital Signature • Modify PDF Passwords Document Settings features • Set custom metadata, document properties, page orientation, and page size. • Set PDF position, title display, resize, page mode and print scaling etc. Other Features • PDF/A-1b and PDF/x1a:2001 Compliance, both standards can be applied. • Extract images, text, pages and attachments from a PDF document • Pen and brush to draw shape elements, text, images into PDF documents. • Layers, transparent graphics, color space and barcode creation can render to PDF documents. • Add scalar/vector images and mask and place them in designated location. • Table and table style can be supported by Free Spire.PDF for .NET. • Insert interactive elements inc
16
GemBox.Document
GemBox.Document is a .NET component that enables developers to read, write, convert and print document files (DOCX, DOC, PDF, HTML, XPS, RTF, TXT) from .NET applications in a simple and efficient way.
16
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 skills that developers already posses. 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 their 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: * PDF to Image functionality can render PDF documents to image files. * Fill and read data from PDF forms. * Extract text and images from existing PDFs. Edit PDFs: * Load and Parse PDF document * 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 o& Remove PDF owner and user passwords * Set PDF metadata and security Permissions * 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 also support email us developers@ironsoftware.com for support direct from our code team. We also offer licensing and extensive support for commercial deployment projects.
16
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.
20
Microsoft.Identity.Web.TokenCache
This package bring token cache serializers for MSAL.NET confidential client applications.
26
NPOI
.NET port of Apache POI | Contact us on telegram: https://t.me/npoidevs
16
NPOI
.NET port of Apache POI | Contact us on telegram: https://t.me/npoidevs
19
NPOI
.NET port of Apache POI | Contact us on telegram: https://t.me/npoidevs
30
PDFSharp.Standard
Package Description
16
QRCoder
Package Description
17
QRCoder
QRCoder is a simple library, written in C#.NET, which enables you to create QR codes.
31
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
16
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
24
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
227
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.
31
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.
607

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