System.Drawing.Common 11.0.0-preview.5.26302.115

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.
157
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
157
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
156
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
153
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
152
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.
148
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
148
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.
145
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
145
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.
143
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.
141
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
141
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
140
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.
139
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.
138
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
138
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.
137
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
137

.NET 10.0

.NET 11.0

.NET Framework 4.6.2

  • No dependencies.

.NET Standard 2.0

  • No dependencies.

Version Downloads Last updated
11.0.0-preview.5.26302.115 1 6/10/2026
11.0.0-preview.4.26230.115 7 5/15/2026
11.0.0-preview.3.26207.106 13 5/3/2026
11.0.0-preview.2.26159.112 15 3/12/2026
11.0.0-preview.1.26104.118 16 2/11/2026
10.0.9 0 6/9/2026
10.0.8 8 5/15/2026
10.0.7 14 5/3/2026
10.0.6 12 5/5/2026
10.0.5 17 3/17/2026
10.0.4 17 3/12/2026
10.0.3 17 2/11/2026
10.0.2 21 1/21/2026
10.0.1 26 12/12/2025
10.0.0 55 11/12/2025
10.0.0-rc.2.25502.107 63 10/16/2025
10.0.0-rc.1.25451.107 68 9/10/2025
10.0.0-preview.7.25380.108 63 8/14/2025
10.0.0-preview.6.25358.103 75 7/18/2025
10.0.0-preview.5.25277.114 71 6/8/2025
10.0.0-preview.4.25258.110 80 5/13/2025
10.0.0-preview.3.25173.2 86 4/13/2025
10.0.0-preview.2.25163.9 78 3/23/2025
10.0.0-preview.1.25080.3 85 2/27/2025
9.0.17 1 6/9/2026
9.0.16 7 5/15/2026
9.0.15 13 5/3/2026
9.0.14 13 3/12/2026
9.0.13 16 2/11/2026
9.0.12 24 1/15/2026
9.0.11 41 11/12/2025
9.0.10 66 10/16/2025
9.0.9 69 9/10/2025
9.0.8 78 8/6/2025
9.0.7 95 7/13/2025
9.0.6 86 6/15/2025
9.0.5 96 5/14/2025
9.0.4 95 4/9/2025
9.0.3 88 3/14/2025
9.0.2 102 2/16/2025
9.0.1 117 1/18/2025
9.0.0 104 11/14/2024
9.0.0-rc.2.24474.1 87 10/16/2024
9.0.0-rc.1.24451.1 106 9/11/2024
9.0.0-preview.7.24405.4 114 8/14/2024
9.0.0-preview.6.24327.6 88 7/10/2024
9.0.0-preview.5.24306.5 123 6/18/2024
9.0.0-preview.4.24267.1 108 5/25/2024
9.0.0-preview.3.24172.9 104 5/4/2024
9.0.0-preview.2.24128.3 101 3/15/2024
9.0.0-preview.1.24081.2 109 2/24/2024
8.0.28 0 6/9/2026
8.0.27 8 5/15/2026
8.0.26 13 5/3/2026
8.0.25 14 3/12/2026
8.0.24 20 2/11/2026
8.0.23 16 1/21/2026
8.0.22 51 11/12/2025
8.0.21 65 10/16/2025
8.0.20 66 9/10/2025
8.0.19 72 8/6/2025
8.0.18 77 7/13/2025
8.0.17 70 6/15/2025
8.0.16 90 5/14/2025
8.0.15 103 4/9/2025
8.0.14 107 3/14/2025
8.0.13 96 2/16/2025
8.0.12 107 1/18/2025
8.0.11 105 11/13/2024
8.0.10 105 10/19/2024
8.0.8 115 8/13/2024
8.0.7 112 7/9/2024
8.0.6 110 5/29/2024
8.0.5 127 5/19/2024
8.0.4 108 5/3/2024
8.0.3 127 3/14/2024
8.0.2 119 2/26/2024
8.0.1 126 1/17/2024
8.0.0 119 11/15/2023
8.0.0-rc.2.23479.14 128 10/16/2023
8.0.0-rc.1.23419.5 127 9/16/2023
8.0.0-preview.7.23375.5 124 8/24/2023
8.0.0-preview.6.23329.4 106 8/24/2023
8.0.0-preview.5.23280.5 125 8/2/2023
8.0.0-preview.4.23259.4 119 8/4/2023
8.0.0-preview.2.23128.3 119 5/17/2023
8.0.0-preview.1.23110.8 115 2/23/2023
7.0.0 116 12/5/2022
7.0.0-rc.2.22472.3 116 12/5/2022
7.0.0-rc.1.22426.10 108 9/16/2022
7.0.0-preview.7.22375.6 137 9/16/2022
7.0.0-preview.6.22324.4 145 9/16/2022
7.0.0-preview.5.22301.12 117 6/28/2022
7.0.0-preview.4.22229.4 137 6/28/2022
7.0.0-preview.3.22175.4 123 6/28/2022
7.0.0-preview.2.22152.2 98 6/28/2022
7.0.0-preview.1.22076.8 126 6/28/2022
6.0.2-mauipre.1.22102.15 117 6/28/2022
6.0.2-mauipre.1.22054.8 152 6/28/2022
6.0.0 134 6/28/2022
6.0.0-rc.2.21480.5 124 6/28/2022
6.0.0-rc.1.21451.13 131 6/28/2022
6.0.0-preview.7.21377.19 128 6/28/2022
6.0.0-preview.6.21352.12 127 6/28/2022
6.0.0-preview.5.21301.5 139 6/28/2022
6.0.0-preview.4.21253.7 134 6/28/2022
6.0.0-preview.3.21201.4 119 6/28/2022
6.0.0-preview.2.21154.6 128 6/28/2022
6.0.0-preview.1.21102.12 128 6/28/2022
5.0.3 159 6/28/2022
5.0.2 132 6/28/2022
5.0.1 145 6/28/2022
5.0.0 121 6/28/2022
5.0.0-rc.2.20475.5 139 6/28/2022
5.0.0-rc.1.20451.14 120 6/28/2022
5.0.0-preview.8.20407.11 115 6/28/2022
5.0.0-preview.7.20364.11 142 6/28/2022
5.0.0-preview.6.20305.6 119 6/28/2022
5.0.0-preview.5.20278.1 131 6/28/2022
5.0.0-preview.4.20251.6 111 6/28/2022
5.0.0-preview.3.20214.6 139 6/28/2022
5.0.0-preview.2.20160.6 117 6/28/2022
5.0.0-preview.1.20120.5 116 6/28/2022
4.7.3 132 6/28/2022
4.7.2 134 6/28/2022
4.7.1 136 6/28/2022
4.7.0 119 6/28/2022
4.7.0-preview3.19551.4 134 6/28/2022
4.7.0-preview2.19523.17 119 6/28/2022
4.7.0-preview1.19504.10 131 6/28/2022
4.6.2 149 6/28/2022
4.6.1 136 6/28/2022
4.6.0 154 6/28/2022
4.6.0-rc1.19456.4 112 6/28/2022
4.6.0-preview9.19421.4 119 6/28/2022
4.6.0-preview9.19416.11 126 6/28/2022
4.6.0-preview8.19405.3 133 6/28/2022
4.6.0-preview7.19362.9 114 6/28/2022
4.6.0-preview6.19303.8 122 6/28/2022
4.6.0-preview6.19264.9 119 6/28/2022
4.6.0-preview5.19224.8 111 6/28/2022
4.6.0-preview4.19212.13 128 6/28/2022
4.6.0-preview3.19128.7 128 6/28/2022
4.6.0-preview.19073.11 123 6/28/2022
4.6.0-preview.18571.3 127 6/28/2022
4.5.2 140 6/28/2022
4.5.1 126 6/28/2022
4.5.0 151 6/28/2022
4.5.0-rc1 116 6/28/2022
4.5.0-preview2-26406-04 119 6/28/2022
4.5.0-preview1-26216-02 113 6/28/2022
4.5.0-preview1-25914-04 135 6/28/2022
4.5.0-preview1-25718-03 102 6/28/2022