System.Drawing.Common 10.0.9 (original) (raw)

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

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. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed.
.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.

NuGet packages (7.7K)

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

Package Downloads
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 as well as .NET Standard. 89.8M
DevExpress.Xpo Target Platform/Framework: Desktop, Web, Mobile DevExpress Product Libraries Used: XPO (.NET ORM Library) (https://www.devexpress.com/xpo) Available in the following DevExpress Subscription(s): Universal, DXperience, WinForms, ASP.NET & Blazor (includes DevExtreme), WPF, DevExtreme Complete, Reporting 89.6M
CompareNETObjects What you have been waiting for. Perform a deep compare of any two .NET objects using reflection. Shows the differences between the two objects. 68.0M
QRCoder QRCoder is a simple library, written in C#.NET, which enables you to create QR codes. 67.6M
EPPlus.System.Drawing Package Description 48.2M

GitHub repositories (625)

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

Repository Stars
PowerShell/PowerShell PowerShell for every system! 53.9K
NickeManarin/ScreenToGif 🎬 ScreenToGif allows you to record a selected area of your screen, edit and save it as a gif or video. 27.1K
BeyondDimension/SteamTools 🛠「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。 25.8K
Devolutions/UniGetUI UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers 24.5K
dotnet/roslyn The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs. 20.5K
BCUninstaller/Bulk-Crap-Uninstaller Remove large amounts of unwanted applications quickly. 19.7K
rocksdanister/lively Free and open-source software that allows users to set animated desktop wallpapers and screensavers powered by WinUI 3. 19.0K
dotnet/runtime .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps. 18.0K
Flow-Launcher/Flow.Launcher :mag: Quick file search & app launcher for Windows with community-made plugins 14.9K
duplicati/duplicati Store securely encrypted backups in the cloud! 14.7K
Sonarr/Sonarr Smart PVR for newsgroup and bittorrent users. 14.0K
babalae/better-genshin-impact 📦BetterGI · 更好的原神 - 自动拾取 | 自动剧情 全自动钓鱼(AI) 全自动七圣召唤 自动伐木 自动刷本 自动采集/挖矿/锄地 一条龙 全连音游 自动烹饪 - UI Automation Testing Tools For Genshin Impact 13.9K
Radarr/Radarr Movie organizer/manager for usenet and torrent users. 13.8K
dotnet/BenchmarkDotNet Powerful .NET library for benchmarking 11.4K
memstechtips/Winhance Application designed to optimize, customize and enhance your Windows experience. 11.0K
Kareadita/Kavita Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family. 10.9K
mRemoteNG/mRemoteNG mRemoteNG is the next generation of mRemote, open source, tabbed, multi-protocol, remote connections manager. 10.9K
dotnet/orleans Cloud Native application framework for .NET 10.8K
MathewSachin/Captura Capture Screen, Audio, Cursor, Mouse Clicks and Keystrokes 10.7K
quasar/Quasar Remote Administration Tool for Windows 9.9K

Include prerelease

Include vulnerable

Include deprecated

Version Downloads Last Updated
11.0.0-preview.5.26302.115 917 6/9/2026
11.0.0-preview.4.26230.115 6,827 5/12/2026
11.0.0-preview.3.26207.106 5,556 4/14/2026
11.0.0-preview.2.26159.112 7,210 3/10/2026
11.0.0-preview.1.26104.118 12,423 2/10/2026
10.0.9 71,637 6/9/2026
10.0.8 813,304 5/12/2026
10.0.7 1,155,263 4/21/2026
10.0.6 429,374 4/14/2026
10.0.5 1,573,915 3/12/2026
10.0.4 164,608 3/10/2026
9.0.17 4,487 6/9/2026
9.0.16 49,084 5/12/2026
9.0.15 217,554 4/14/2026
9.0.14 161,835 3/10/2026
9.0.13 105,475 2/10/2026
8.0.28 7,553 6/9/2026
8.0.27 69,732 5/12/2026
8.0.26 115,793 4/14/2026
8.0.25 142,648 3/10/2026