Skip to content

Commit 9a656d8

Browse files
authored
Update drawing.md (#6939)
1 parent b3e9bd8 commit 9a656d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

includes/drawing.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
>
66
> - Some types in the `System.Drawing` namespace rely on [GDI+](/windows/win32/gdiplus/-gdiplus-gdi-start), which is not supported in Windows services and ASP.NET Core and ASP.NET apps. These types are in the [System.Drawing.Common](https://www.nuget.org/packages/System.Drawing.Common/) NuGet package and include <xref:System.Drawing.Bitmap?displayProperty=fullName> and <xref:System.Drawing.Font?displayProperty=fullName>. However, primitive types in the namespace, such as <xref:System.Drawing.Color?displayProperty=fullName>, <xref:System.Drawing.Size?displayProperty=fullName>, <xref:System.Drawing.Point?displayProperty=fullName>, and <xref:System.Drawing.Rectangle?displayProperty=fullName>, can be used in any application.
77
>
8-
> - The [System.Drawing.Common](https://www.nuget.org/packages/System.Drawing.Common/) NuGet package works on Windows, Linux, and macOS. However, there are some platform differences. On Linux and macOS, the GDI+ functionality is implemented by the [libgdiplus](https://www.mono-project.com/docs/gui/libgdiplus/) library. This library is not installed by default in most Linux distributions and doesn't support all the functionality of GDI+ on Windows and macOS. There are also platforms where libgdiplus is not available at all. To use types from the System.Drawing.Common package on Linux and macOS, you must install libgdiplus separately. For more information, see [Install .NET on Linux](/dotnet/core/install/linux) or [Install .NET on macOS](/dotnet/core/install/macos#libgdiplus).
8+
> - In .NET 5 and previous versions, the [System.Drawing.Common](https://www.nuget.org/packages/System.Drawing.Common/) NuGet package works on Windows, Linux, and macOS. However, there are some platform differences. On Linux and macOS, the GDI+ functionality is implemented by the [libgdiplus)](https://www.mono-project.com/docs/gui/libgdiplus/) library. This library is not installed by default in most Linux distributions and doesn't support all the functionality of GDI+ on Windows and macOS. There are also platforms where libgdiplus is not available at all. To use types from the System.Drawing.Common package on Linux and macOS, you must install libgdiplus separately. For more information, see [Install .NET on Linux](/dotnet/core/install/linux) or [Install .NET on macOS](/dotnet/core/install/macos#libgdiplus).
99
>
10-
> If you can't use `System.Drawing` with your application, recommended alternatives include [ImageSharp](https://github.com/SixLabors/ImageSharp), [SkiaSharp](https://github.com/mono/SkiaSharp), and [Windows Imaging Components](/windows/desktop/wic/-wic-about-windows-imaging-codec).
10+
> - In .NET 6 and later versions, the [System.Drawing.Common](https://www.nuget.org/packages/System.Drawing.Common/) NuGet package is only supported on Windows operating systems. For more information, see [System.Drawing.Common only supported on Windows](/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only).
11+
>
12+
> If you can't use `System.Drawing` with your application, recommended alternatives include [ImageSharp](https://github.com/SixLabors/ImageSharp), [SkiaSharp](https://github.com/mono/SkiaSharp), [Windows Imaging Components](/windows/desktop/wic/-wic-about-windows-imaging-codec), and [Microsoft.Maui.Graphics](https://github.com/dotnet/Microsoft.Maui.Graphics).

0 commit comments

Comments
 (0)