System.Drawing.Common
10.0.0-preview.4.25255.103
See the version list below for details.
dotnet add package System.Drawing.Common --version 10.0.0-preview.4.25255.103
NuGet\Install-Package System.Drawing.Common -Version 10.0.0-preview.4.25255.103
<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.4.25255.103" />
<PackageVersion Include="System.Drawing.Common" Version="10.0.0-preview.4.25255.103" />
<PackageReference Include="System.Drawing.Common" />
paket add System.Drawing.Common --version 10.0.0-preview.4.25255.103
#r "nuget: System.Drawing.Common, 10.0.0-preview.4.25255.103"
#:package System.Drawing.Common@10.0.0-preview.4.25255.103
#addin nuget:?package=System.Drawing.Common&version=10.0.0-preview.4.25255.103&prerelease
#tool nuget:?package=System.Drawing.Common&version=10.0.0-preview.4.25255.103&prerelease
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:
- NuGet Gallery | System.Drawing.Common
- System.Drawing.Common Namespace | Microsoft Docs
- Drawing with System.Drawing.Common | Microsoft Learn
Feedback
- Open an issue on the GitHub repository
- Reach out on Twitter with the hashtag #winforms
- Join our Discord channel: dotnet/Discord
Product | Versions 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. |
-
.NETFramework 4.6.2
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
-
net10.0
- Microsoft.Win32.SystemEvents (>= 10.0.0-preview.4.25255.103)
-
net8.0
- Microsoft.Win32.SystemEvents (>= 10.0.0-preview.4.25255.103)
-
net9.0
- Microsoft.Win32.SystemEvents (>= 10.0.0-preview.4.25255.103)
GitHub repositories (508)
Showing the top 20 popular GitHub repositories that depend on System.Drawing.Common:
Repository | Stars |
---|---|
microsoft/PowerToys
Windows system utilities to maximize productivity
|
|
PowerShell/PowerShell
PowerShell for every system!
|
|
NickeManarin/ScreenToGif
🎬 ScreenToGif allows you to record a selected area of your screen, edit and save it as a gif or video.
|
|
BeyondDimension/SteamTools
🛠「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。
|
|
dotnet/roslyn
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
|
|
marticliment/UniGetUI
UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers
|
|
rocksdanister/lively
Free and open-source software that allows users to set animated desktop wallpapers and screensavers powered by WinUI 3.
|
|
dotnet/runtime
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
|
|
duplicati/duplicati
Store securely encrypted backups in the cloud!
|
|
dotnet/BenchmarkDotNet
Powerful .NET library for benchmarking
|
|
SubtitleEdit/subtitleedit
the subtitle editor :)
|
|
dotnet/orleans
Cloud Native application framework for .NET
|
|
Flow-Launcher/Flow.Launcher
:mag: Quick file search & app launcher for Windows with community-made plugins
|
|
MathewSachin/Captura
Capture Screen, Audio, Cursor, Mouse Clicks and Keystrokes
|
|
mRemoteNG/mRemoteNG
mRemoteNG is the next generation of mRemote, open source, tabbed, multi-protocol, remote connections manager.
|
|
babalae/better-genshin-impact
📦BetterGI · 更好的原神 - 自动拾取 | 自动剧情 | 全自动钓鱼(AI) | 全自动七圣召唤 | 自动伐木 | 自动刷本 | 自动采集/挖矿/锄地 | 一条龙 | 全连音游 - UI Automation Testing Tools For Genshin Impact
|
|
quasar/Quasar
Remote Administration Tool for Windows
|
|
JeffreySu/WeiXinMPSDK
微信全平台 .NET SDK, Senparc.Weixin for C#,支持 .NET Framework 及 .NET Core、.NET 8.0。已支持微信公众号、小程序、小游戏、微信支付、企业微信/企业号、开放平台、JSSDK、微信周边等全平台。 WeChat SDK for C#.
|
|
lepoco/wpfui
WPF UI provides the Fluent experience in your known and loved WPF framework. Intuitive design, themes, navigation and new immersive controls. All natively and effortlessly.
|
|
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.
|
Version | Downloads | Last Updated | |
---|---|---|---|
10.0.0-preview.6.25321.102 | 0 | 6/25/2025 | |
10.0.0-preview.5.25280.105 | 0 | 6/2/2025 | |
10.0.0-preview.5.25277.114 | 0 | 6/3/2025 | |
10.0.0-preview.5.25277.101 | 0 | 5/29/2025 | |
10.0.0-preview.5.25266.103 | 0 | 5/20/2025 | |
10.0.0-preview.4.25255.103 | 0 | 5/12/2025 | |
9.0.7 | 0 | 7/11/2025 | |
4.6.0-preview.19073.11 | 2 | 1/28/2019 | |
4.6.0-preview.18571.3 | 3 | 11/30/2018 |