Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions includes/drawing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
> [!WARNING]
> The `System.Drawing` namespace is not recommended for new development, due to not being supported within a Windows or ASP.NET service and it is not cross-platform. [ImageSharp](https://github.com/SixLabors/ImageSharp) and [SkiaSharp](https://github.com/mono/SkiaSharp) are recommended as alternatives.
3 changes: 3 additions & 0 deletions xml/ns-System.Drawing.Drawing2D.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
<format type="text/markdown"><![CDATA[

## Remarks

[!INCLUDE[drawing](~/includes/drawing.md)]

The following table lists some of the important classes and enumerations in the <xref:System.Drawing.Drawing2D> namespace, grouped into categories.

|Class category|Details|
Expand Down
3 changes: 3 additions & 0 deletions xml/ns-System.Drawing.Imaging.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
<format type="text/markdown"><![CDATA[

## Remarks

[!INCLUDE[drawing](~/includes/drawing.md)]

The <xref:System.Drawing.Imaging.Metafile> class provides methods for recording and saving metafiles. The <xref:System.Drawing.Imaging.Encoder> class enables users to extend GDI+ to support any image format. The <xref:System.Drawing.Imaging.PropertyItem> class provides methods for storing and retrieving metadata in image files.

> [!CAUTION]
Expand Down
3 changes: 3 additions & 0 deletions xml/ns-System.Drawing.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
<format type="text/markdown"><![CDATA[

## Remarks

[!INCLUDE[drawing](~/includes/drawing.md)]

The <xref:System.Drawing.Graphics> class provides methods for drawing to the display device. Classes such as <xref:System.Drawing.Rectangle> and <xref:System.Drawing.Point> encapsulate GDI+ primitives. The <xref:System.Drawing.Pen> class is used to draw lines and curves, while classes derived from the abstract class <xref:System.Drawing.Brush> are used to fill the interiors of shapes.

> [!CAUTION]
Expand Down