System.Drawing.Common 10.0.0-preview.6.25358.103

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
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.
46
FFMpegCore
A .NET Standard FFMpeg/FFProbe wrapper for easily integrating media analysis and conversion into your C# applications
12
Emgu.CV.Bitmap
This package add extension method to convert Bitmap to and from Emgu objects (e.g. Mat, UMat, GpuMat)
10
Emgu.CV.Bitmap
Emgu CV is a cross platform .Net wrapper to the OpenCV image processing library. Allowing OpenCV functions to be called from .NET compatible languages such as C#, VB, VC++, IronPython etc.
9
FFMpegCore
A .NET Standard FFMpeg/FFProbe wrapper for easily integrating media analysis and conversion into your .NET applications
9
Emgu.CV.Bitmap
This package add extension method to convert Bitmap to and from Emgu objects (e.g. Mat, UMat, GpuMat)
8
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.
8
FFMpegCore
A great way to use FFMpeg encoding when writing video applications, client-side and server-side. It has wrapper methods that allow conversion to all web formats: MP4, OGV, TS and methods of capturing screens from the videos.
8
FFMpegCore
A .NET Standard FFMpeg/FFProbe wrapper for easily integrating media analysis and conversion into your C# applications
8

.NET Framework 4.6.2

  • No dependencies.

.NET 8.0

.NET 9.0

.NET 10.0

.NET Standard 2.0

  • No dependencies.

Version Downloads Last updated
10.0.0-preview.6.25358.103 6 07/20/2025
10.0.0-preview.3.25173.2 5 07/11/2025
9.0.8 5 08/08/2025
9.0.7 5 07/18/2025
9.0.4 4 07/09/2025
8.0.19 5 08/08/2025
8.0.18 5 07/19/2025
8.0.14 4 07/11/2025
8.0.4 5 07/23/2025
8.0.2 13 08/02/2025
8.0.0-preview.7.23375.5 5 07/12/2025
8.0.0-preview.5.23280.5 6 08/10/2025
8.0.0-preview.1.23110.8 4 07/11/2025
7.0.0-rc.2.22472.3 4 07/12/2025
7.0.0-preview.2.22152.2 4 07/09/2025
5.0.0 4 07/13/2025
5.0.0-rc.2.20475.5 4 07/10/2025
4.7.0 34 07/07/2025