System.Drawing.Common 9.0.22

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.
174
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
174
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
171
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
169
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
164
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.
163
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
163
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.
160
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.
159
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
158
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
155
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.
155
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.
154
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.
153
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.
152
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
150

.NET Framework 4.6.2

  • No dependencies.

.NET 8.0

.NET 9.0

.NET Standard 2.0

  • No dependencies.

Version Downloads Last updated
11.0.0-rc.3.26522.148 6 10/26/2026
11.0.0-rc.2.26504.105 14 10/14/2026
11.0.0-rc.1.26425.128 26 9/10/2026
11.0.0-preview.7.26381.103 18 8/13/2026
11.0.0-preview.6.26359.118 24 7/16/2026
11.0.0-preview.5.26302.115 28 6/10/2026
11.0.0-preview.4.26230.115 47 5/15/2026
11.0.0-preview.3.26207.106 37 5/3/2026
11.0.0-preview.2.26159.112 40 3/12/2026
11.0.0-preview.1.26104.118 41 2/11/2026
10.0.14 6 10/26/2026
10.0.13 14 10/14/2026
10.0.12 24 9/10/2026
10.0.11 23 8/13/2026
10.0.10 24 7/17/2026
10.0.9 31 6/10/2026
10.0.8 42 5/15/2026
10.0.7 44 5/3/2026
10.0.6 43 5/5/2026
10.0.5 41 3/17/2026
10.0.4 45 3/12/2026
10.0.3 52 2/11/2026
10.0.2 41 1/21/2026
10.0.1 51 12/12/2025
10.0.0 71 11/12/2025
10.0.0-rc.2.25502.107 78 10/16/2025
10.0.0-rc.1.25451.107 90 9/10/2025
10.0.0-preview.7.25380.108 80 8/14/2025
10.0.0-preview.6.25358.103 95 7/18/2025
10.0.0-preview.5.25277.114 88 6/8/2025
10.0.0-preview.4.25258.110 99 5/13/2025
10.0.0-preview.3.25173.2 101 4/13/2025
10.0.0-preview.2.25163.9 105 3/23/2025
10.0.0-preview.1.25080.3 100 2/27/2025
9.0.22 8 10/26/2026
9.0.21 9 10/14/2026
9.0.20 20 9/10/2026
9.0.19 19 8/13/2026
9.0.18 33 7/18/2026
9.0.17 32 6/9/2026
9.0.16 31 5/15/2026
9.0.15 48 5/3/2026
9.0.14 41 3/12/2026
9.0.13 37 2/11/2026
9.0.12 54 1/15/2026
9.0.11 67 11/12/2025
9.0.10 89 10/16/2025
9.0.9 97 9/10/2025
9.0.8 100 8/6/2025
9.0.7 116 7/13/2025
9.0.6 101 6/15/2025
9.0.5 117 5/14/2025
9.0.4 113 4/9/2025
9.0.3 108 3/14/2025
9.0.2 118 2/16/2025
9.0.1 132 1/18/2025
9.0.0 119 11/14/2024
9.0.0-rc.2.24474.1 104 10/16/2024
9.0.0-rc.1.24451.1 118 9/11/2024
9.0.0-preview.7.24405.4 128 8/14/2024
9.0.0-preview.6.24327.6 101 7/10/2024
9.0.0-preview.5.24306.5 143 6/18/2024
9.0.0-preview.4.24267.1 126 5/25/2024
9.0.0-preview.3.24172.9 119 5/4/2024
9.0.0-preview.2.24128.3 115 3/15/2024
9.0.0-preview.1.24081.2 125 2/24/2024
8.0.33 6 10/26/2026
8.0.32 9 10/14/2026
8.0.31 18 9/10/2026
8.0.30 22 8/13/2026
8.0.29 31 7/17/2026
8.0.28 32 6/10/2026
8.0.27 34 5/15/2026
8.0.26 38 5/3/2026
8.0.25 39 3/12/2026
8.0.24 45 2/11/2026
8.0.23 42 1/21/2026
8.0.22 70 11/12/2025
8.0.21 85 10/16/2025
8.0.20 90 9/10/2025
8.0.19 91 8/6/2025
8.0.18 91 7/13/2025
8.0.17 83 6/15/2025
8.0.16 107 5/14/2025
8.0.15 124 4/9/2025
8.0.14 123 3/14/2025
8.0.13 113 2/16/2025
8.0.12 125 1/18/2025
8.0.11 119 11/13/2024
8.0.10 117 10/19/2024
8.0.8 131 8/13/2024
8.0.7 132 7/9/2024
8.0.6 128 5/29/2024
8.0.5 151 5/19/2024
8.0.4 122 5/3/2024
8.0.3 143 3/14/2024
8.0.2 139 2/26/2024
8.0.1 141 1/17/2024
8.0.0 136 11/15/2023
8.0.0-rc.2.23479.14 143 10/16/2023
8.0.0-rc.1.23419.5 141 9/16/2023
8.0.0-preview.7.23375.5 138 8/24/2023
8.0.0-preview.6.23329.4 124 8/24/2023
8.0.0-preview.5.23280.5 138 8/2/2023
8.0.0-preview.4.23259.4 133 8/4/2023
8.0.0-preview.2.23128.3 134 5/17/2023
8.0.0-preview.1.23110.8 130 2/23/2023
7.0.0 132 12/5/2022
7.0.0-rc.2.22472.3 130 12/5/2022
7.0.0-rc.1.22426.10 123 9/16/2022
7.0.0-preview.7.22375.6 154 9/16/2022
7.0.0-preview.6.22324.4 161 9/16/2022
7.0.0-preview.5.22301.12 130 6/28/2022
7.0.0-preview.4.22229.4 151 6/28/2022
7.0.0-preview.3.22175.4 137 6/28/2022
7.0.0-preview.2.22152.2 113 6/28/2022
7.0.0-preview.1.22076.8 140 6/28/2022
6.0.2-mauipre.1.22102.15 131 6/28/2022
6.0.2-mauipre.1.22054.8 165 6/28/2022
6.0.0 146 6/28/2022
6.0.0-rc.2.21480.5 138 6/28/2022
6.0.0-rc.1.21451.13 142 6/28/2022
6.0.0-preview.7.21377.19 144 6/28/2022
6.0.0-preview.6.21352.12 140 6/28/2022
6.0.0-preview.5.21301.5 155 6/28/2022
6.0.0-preview.4.21253.7 145 6/28/2022
6.0.0-preview.3.21201.4 131 6/28/2022
6.0.0-preview.2.21154.6 142 6/28/2022
6.0.0-preview.1.21102.12 141 6/28/2022
5.0.3 178 6/28/2022
5.0.2 147 6/28/2022
5.0.1 164 6/28/2022
5.0.0 140 6/28/2022
5.0.0-rc.2.20475.5 158 6/28/2022
5.0.0-rc.1.20451.14 134 6/28/2022
5.0.0-preview.8.20407.11 128 6/28/2022
5.0.0-preview.7.20364.11 157 6/28/2022
5.0.0-preview.6.20305.6 137 6/28/2022
5.0.0-preview.5.20278.1 147 6/28/2022
5.0.0-preview.4.20251.6 125 6/28/2022
5.0.0-preview.3.20214.6 153 6/28/2022
5.0.0-preview.2.20160.6 131 6/28/2022
5.0.0-preview.1.20120.5 130 6/28/2022
4.7.3 155 6/28/2022
4.7.2 147 6/28/2022
4.7.1 151 6/28/2022
4.7.0 133 6/28/2022
4.7.0-preview3.19551.4 148 6/28/2022
4.7.0-preview2.19523.17 139 6/28/2022
4.7.0-preview1.19504.10 147 6/28/2022
4.6.2 165 6/28/2022
4.6.1 148 6/28/2022
4.6.0 168 6/28/2022
4.6.0-rc1.19456.4 125 6/28/2022
4.6.0-preview9.19421.4 134 6/28/2022
4.6.0-preview9.19416.11 142 6/28/2022
4.6.0-preview8.19405.3 148 6/28/2022
4.6.0-preview7.19362.9 129 6/28/2022
4.6.0-preview6.19303.8 139 6/28/2022
4.6.0-preview6.19264.9 134 6/28/2022
4.6.0-preview5.19224.8 127 6/28/2022
4.6.0-preview4.19212.13 142 6/28/2022
4.6.0-preview3.19128.7 141 6/28/2022
4.6.0-preview.19073.11 142 6/28/2022
4.6.0-preview.18571.3 146 6/28/2022
4.5.2 151 6/28/2022
4.5.1 142 6/28/2022
4.5.0 164 6/28/2022
4.5.0-rc1 132 6/28/2022
4.5.0-preview2-26406-04 134 6/28/2022
4.5.0-preview1-26216-02 127 6/28/2022
4.5.0-preview1-25914-04 153 6/28/2022
4.5.0-preview1-25718-03 116 6/28/2022