System.Drawing.Common 10.0.8

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
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
152
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
151
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
147
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
144
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.
144
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.
142
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.
140
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
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 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
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.
136
System.Windows.Extensions
Provides miscellaneous Windows-specific types Commonly Used Types: System.Security.Cryptography.X509Certificates.X509Certificate2UI System.Security.Cryptography.X509Certificates.X509SelectionFlag
136

.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
11.0.0-preview.4.26230.115 5 5/15/2026
11.0.0-preview.3.26207.106 13 5/3/2026
11.0.0-preview.2.26159.112 14 3/12/2026
11.0.0-preview.1.26104.118 15 2/11/2026
10.0.8 7 5/15/2026
10.0.7 14 5/3/2026
10.0.6 12 5/5/2026
10.0.5 16 3/17/2026
10.0.4 16 3/12/2026
10.0.3 17 2/11/2026
10.0.2 21 1/21/2026
10.0.1 25 12/12/2025
10.0.0 54 11/12/2025
10.0.0-rc.2.25502.107 60 10/16/2025
10.0.0-rc.1.25451.107 67 9/10/2025
10.0.0-preview.7.25380.108 61 8/14/2025
10.0.0-preview.6.25358.103 74 7/18/2025
10.0.0-preview.5.25277.114 70 6/8/2025
10.0.0-preview.4.25258.110 79 5/13/2025
10.0.0-preview.3.25173.2 85 4/13/2025
10.0.0-preview.2.25163.9 78 3/23/2025
10.0.0-preview.1.25080.3 84 2/27/2025
9.0.16 6 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 22 1/15/2026
9.0.11 40 11/12/2025
9.0.10 64 10/16/2025
9.0.9 68 9/10/2025
9.0.8 77 8/6/2025
9.0.7 93 7/13/2025
9.0.6 84 6/15/2025
9.0.5 94 5/14/2025
9.0.4 94 4/9/2025
9.0.3 86 3/14/2025
9.0.2 101 2/16/2025
9.0.1 116 1/18/2025
9.0.0 103 11/14/2024
9.0.0-rc.2.24474.1 86 10/16/2024
9.0.0-rc.1.24451.1 105 9/11/2024
9.0.0-preview.7.24405.4 113 8/14/2024
9.0.0-preview.6.24327.6 87 7/10/2024
9.0.0-preview.5.24306.5 122 6/18/2024
9.0.0-preview.4.24267.1 106 5/25/2024
9.0.0-preview.3.24172.9 103 5/4/2024
9.0.0-preview.2.24128.3 100 3/15/2024
9.0.0-preview.1.24081.2 108 2/24/2024
8.0.27 6 5/15/2026
8.0.26 13 5/3/2026
8.0.25 13 3/12/2026
8.0.24 20 2/11/2026
8.0.23 16 1/21/2026
8.0.22 50 11/12/2025
8.0.21 64 10/16/2025
8.0.20 65 9/10/2025
8.0.19 71 8/6/2025
8.0.18 76 7/13/2025
8.0.17 69 6/15/2025
8.0.16 89 5/14/2025
8.0.15 102 4/9/2025
8.0.14 106 3/14/2025
8.0.13 95 2/16/2025
8.0.12 105 1/18/2025
8.0.11 104 11/13/2024
8.0.10 104 10/19/2024
8.0.8 114 8/13/2024
8.0.7 111 7/9/2024
8.0.6 108 5/29/2024
8.0.5 126 5/19/2024
8.0.4 107 5/3/2024
8.0.3 126 3/14/2024
8.0.2 118 2/26/2024
8.0.1 125 1/17/2024
8.0.0 118 11/15/2023
8.0.0-rc.2.23479.14 127 10/16/2023
8.0.0-rc.1.23419.5 126 9/16/2023
8.0.0-preview.7.23375.5 123 8/24/2023
8.0.0-preview.6.23329.4 105 8/24/2023
8.0.0-preview.5.23280.5 124 8/2/2023
8.0.0-preview.4.23259.4 118 8/4/2023
8.0.0-preview.2.23128.3 118 5/17/2023
8.0.0-preview.1.23110.8 114 2/23/2023
7.0.0 114 12/5/2022
7.0.0-rc.2.22472.3 114 12/5/2022
7.0.0-rc.1.22426.10 107 9/16/2022
7.0.0-preview.7.22375.6 136 9/16/2022
7.0.0-preview.6.22324.4 144 9/16/2022
7.0.0-preview.5.22301.12 116 6/28/2022
7.0.0-preview.4.22229.4 136 6/28/2022
7.0.0-preview.3.22175.4 122 6/28/2022
7.0.0-preview.2.22152.2 96 6/28/2022
7.0.0-preview.1.22076.8 125 6/28/2022
6.0.2-mauipre.1.22102.15 115 6/28/2022
6.0.2-mauipre.1.22054.8 150 6/28/2022
6.0.0 133 6/28/2022
6.0.0-rc.2.21480.5 123 6/28/2022
6.0.0-rc.1.21451.13 129 6/28/2022
6.0.0-preview.7.21377.19 127 6/28/2022
6.0.0-preview.6.21352.12 126 6/28/2022
6.0.0-preview.5.21301.5 138 6/28/2022
6.0.0-preview.4.21253.7 133 6/28/2022
6.0.0-preview.3.21201.4 117 6/28/2022
6.0.0-preview.2.21154.6 127 6/28/2022
6.0.0-preview.1.21102.12 127 6/28/2022
5.0.3 158 6/28/2022
5.0.2 131 6/28/2022
5.0.1 143 6/28/2022
5.0.0 120 6/28/2022
5.0.0-rc.2.20475.5 138 6/28/2022
5.0.0-rc.1.20451.14 119 6/28/2022
5.0.0-preview.8.20407.11 113 6/28/2022
5.0.0-preview.7.20364.11 141 6/28/2022
5.0.0-preview.6.20305.6 118 6/28/2022
5.0.0-preview.5.20278.1 130 6/28/2022
5.0.0-preview.4.20251.6 110 6/28/2022
5.0.0-preview.3.20214.6 137 6/28/2022
5.0.0-preview.2.20160.6 116 6/28/2022
5.0.0-preview.1.20120.5 113 6/28/2022
4.7.3 131 6/28/2022
4.7.2 133 6/28/2022
4.7.1 135 6/28/2022
4.7.0 117 6/28/2022
4.7.0-preview3.19551.4 133 6/28/2022
4.7.0-preview2.19523.17 118 6/28/2022
4.7.0-preview1.19504.10 130 6/28/2022
4.6.2 147 6/28/2022
4.6.1 135 6/28/2022
4.6.0 153 6/28/2022
4.6.0-rc1.19456.4 111 6/28/2022
4.6.0-preview9.19421.4 118 6/28/2022
4.6.0-preview9.19416.11 125 6/28/2022
4.6.0-preview8.19405.3 132 6/28/2022
4.6.0-preview7.19362.9 113 6/28/2022
4.6.0-preview6.19303.8 121 6/28/2022
4.6.0-preview6.19264.9 118 6/28/2022
4.6.0-preview5.19224.8 110 6/28/2022
4.6.0-preview4.19212.13 127 6/28/2022
4.6.0-preview3.19128.7 127 6/28/2022
4.6.0-preview.19073.11 121 6/28/2022
4.6.0-preview.18571.3 126 6/28/2022
4.5.2 137 6/28/2022
4.5.1 125 6/28/2022
4.5.0 150 6/28/2022
4.5.0-rc1 115 6/28/2022
4.5.0-preview2-26406-04 118 6/28/2022
4.5.0-preview1-26216-02 112 6/28/2022
4.5.0-preview1-25914-04 134 6/28/2022
4.5.0-preview1-25718-03 101 6/28/2022