System.Drawing.Common 9.0.0-preview.4.24267.1

The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved
This is a prerelease version of System.Drawing.Common.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package System.Drawing.Common --version 9.0.0-preview.4.24267.1
NuGet\Install-Package System.Drawing.Common -Version 9.0.0-preview.4.24267.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="System.Drawing.Common" Version="9.0.0-preview.4.24267.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add System.Drawing.Common --version 9.0.0-preview.4.24267.1
#r "nuget: System.Drawing.Common, 9.0.0-preview.4.24267.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install System.Drawing.Common as a Cake Addin
#addin nuget:?package=System.Drawing.Common&version=9.0.0-preview.4.24267.1&prerelease

// Install System.Drawing.Common as a Cake Tool
#tool nuget:?package=System.Drawing.Common&version=9.0.0-preview.4.24267.1&prerelease


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.


The following examples demonstrate some basic tasks you can accomplish with System.Drawing.Common.

Create a Simple Bitmap and Save it

using System.Drawing;

class Program
    static void Main()
        using (Bitmap bitmap = new Bitmap(100, 100))
            using (Graphics g = Graphics.FromImage(bitmap))
Imports System.Drawing

Module Program
    Sub Main()
        Using bitmap As New Bitmap(100, 100)
            Using g As Graphics = Graphics.FromImage(bitmap)
            End Using
        End Using
    End Sub
End Module

Additional Documentation

For more in-depth tutorials and API references, you can check the following resources:


Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed.  monoandroid10 is compatible. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed.  monotouch10 is compatible. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed.  xamarinios10 is compatible. 
Xamarin.Mac xamarinmac was computed.  xamarinmac20 is compatible. 
Xamarin.TVOS xamarintvos was computed.  xamarintvos10 is compatible. 
Xamarin.WatchOS xamarinwatchos was computed.  xamarinwatchos10 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3.2K)

Showing the top 5 NuGet packages that depend on System.Drawing.Common:

Package Downloads
Microsoft.Windows.Compatibility The ID prefix of this package has been reserved for one of the owners of this package by

This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET as well as .NET Standard.


What you have been waiting for. Perform a deep compare of any two .NET objects using reflection. Shows the differences between the two objects.


QRCoder is a simple library, written in C#.NET, which enables you to create QR codes.


Aspose.PDF for .NET is a PDF document creation and manipulation component that enables your .NET applications to read, write and manipulate existing PDF documents without using Adobe Acrobat. It also allows you to create forms and manage form fields embedded in a PDF document. This component is written in managed C# and it allows developers to add PDF creation and manipulation functionality to their Microsoft .NET applications (WinForms, ASP.NET and .NET Compact Framework). Aspose.PDF for .NET is affordable and offers an incredible wealth of features including PDF compression options; table creation and manipulation; support for graph objects; extensive hyperlink functionality; extended security controls; custom font handling; integration with data sources; add or remove bookmarks; create table of contents; add, update, delete attachments and annotations; import or export PDF form data; add, replace or remove text and images; split, concatenate, extract or insert pages; transform pages to image; print PDF documents and much more.


A powerful and fast library written in C# for manipulating and converting Excel(XLS, XLSX,XLSB), ODS, CSV,JSON and HTML files.

GitHub repositories (421)

Showing the top 5 popular GitHub repositories that depend on System.Drawing.Common:

Repository Stars
Windows system utilities to maximize productivity
PowerShell for every system!
Experimental Nintendo Switch Emulator written in C#
🎬 ScreenToGif allows you to record a selected area of your screen, edit and save it as a gif or video.
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
Version Downloads Last updated
9.0.0-preview.5.24306.5 1,717 6/11/2024
9.0.0-preview.4.24267.1 6,659 5/21/2024
9.0.0-preview.3.24172.9 11,498 4/11/2024
9.0.0-preview.2.24128.3 7,333 3/12/2024
9.0.0-preview.1.24081.2 13,122 2/13/2024
8.0.6 210,695 5/28/2024
8.0.5 250,351 5/14/2024
8.0.4 987,560 4/9/2024
8.0.3 822,428 3/12/2024
8.0.2 1,224,676 2/13/2024
8.0.1 1,791,719 1/9/2024
8.0.0 3,601,668 11/14/2023
8.0.0-rc.2.23479.14 48,344 10/10/2023
8.0.0-rc.1.23419.5 21,931 9/12/2023
8.0.0-preview.7.23375.5 60,862 8/8/2023
8.0.0-preview.6.23329.4 378 8/8/2023
8.0.0-preview.5.23280.5 33,983 6/23/2023
8.0.0-preview.4.23259.4 6,863 6/23/2023
8.0.0-preview.2.23128.3 82,648 3/14/2023
8.0.0-preview.1.23110.8 56,593 2/21/2023
7.0.0 64,095,745 11/7/2022
7.0.0-rc.2.22472.3 154,323 10/11/2022
7.0.0-rc.1.22426.10 145,174 9/14/2022
7.0.0-preview.7.22375.6 53,706 8/9/2022
7.0.0-preview.6.22324.4 59,909 7/12/2022
7.0.0-preview.5.22301.12 39,476 6/14/2022
7.0.0-preview.4.22229.4 40,170 5/10/2022
7.0.0-preview.3.22175.4 67,107 4/13/2022
7.0.0-preview.2.22152.2 41,680 3/14/2022
7.0.0-preview.1.22076.8 33,714 2/17/2022
6.0.2-mauipre.1.22102.15 23,038 2/15/2022
6.0.2-mauipre.1.22054.8 281,642 1/19/2022
6.0.0 234,954,829 11/8/2021
6.0.0-rc.2.21480.5 78,095 10/12/2021
6.0.0-rc.1.21451.13 87,444 9/14/2021
6.0.0-preview.7.21377.19 639,791 8/10/2021
6.0.0-preview.6.21352.12 84,617 7/14/2021
6.0.0-preview.5.21301.5 78,566 6/15/2021
6.0.0-preview.4.21253.7 69,723 5/24/2021
6.0.0-preview.3.21201.4 179,335 4/8/2021
6.0.0-preview.2.21154.6 84,105 3/11/2021
6.0.0-preview.1.21102.12 159,328 2/12/2021
5.0.3 15,442,773 11/7/2021
5.0.2 28,715,416 3/9/2021
5.0.1 3,322,544 2/9/2021
5.0.0 300,734,615 11/9/2020
5.0.0-rc.2.20475.5 125,086 10/13/2020
5.0.0-rc.1.20451.14 118,767 9/14/2020
5.0.0-preview.8.20407.11 186,628 8/25/2020
5.0.0-preview.7.20364.11 132,469 7/21/2020
5.0.0-preview.6.20305.6 115,592 6/25/2020
5.0.0-preview.5.20278.1 35,633 6/10/2020
5.0.0-preview.4.20251.6 135,026 5/18/2020
5.0.0-preview.3.20214.6 72,040 4/23/2020
5.0.0-preview.2.20160.6 80,759 4/2/2020
5.0.0-preview.1.20120.5 49,390 3/16/2020
4.7.3 3,063,571 11/7/2021
4.7.2 29,967,959 2/9/2021
4.7.1 4,231,498 11/9/2020
4.7.0 496,973,161 12/3/2019
4.7.0-preview3.19551.4 57,000 11/13/2019
4.7.0-preview2.19523.17 28,249 11/1/2019
4.7.0-preview1.19504.10 32,002 10/15/2019
4.6.2 45,199 1/14/2020
4.6.1 2,143,518 11/18/2019
4.6.0 55,414,068 9/23/2019
4.6.0-rc1.19456.4 77,839 9/16/2019
4.6.0-preview9.19421.4 28,505 9/4/2019
4.6.0-preview9.19416.11 893 9/4/2019
4.6.0-preview8.19405.3 279,046 8/13/2019
4.6.0-preview7.19362.9 84,510 7/23/2019
4.6.0-preview6.19303.8 10,677,353 6/12/2019
4.6.0-preview6.19264.9 877 9/4/2019
4.6.0-preview5.19224.8 154,041 5/6/2019
4.6.0-preview4.19212.13 21,182 4/18/2019
4.6.0-preview3.19128.7 287,917 3/6/2019
4.6.0-preview.19073.11 53,083 1/29/2019
4.6.0-preview.18571.3 97,725 12/3/2018
4.5.2 59,909 2/9/2021
4.5.1 46,365,587 10/1/2018
4.5.0 90,881,854 5/29/2018
4.5.0-rc1 163,792 5/6/2018
4.5.0-preview2-26406-04 757,814 4/10/2018
4.5.0-preview1-26216-02 1,202,138 2/26/2018
4.5.0-preview1-25914-04 11,649,442 11/15/2017
4.5.0-preview1-25718-03 60,697 9/19/2017