|
66 | 66 |
|
67 | 67 | You can obtain a <xref:System.Drawing.Graphics> object by calling the <xref:System.Windows.Forms.Control.CreateGraphics%2A?displayProperty=nameWithType> method on an object that inherits from <xref:System.Windows.Forms.Control?displayProperty=nameWithType>, or by handling a control's <xref:System.Windows.Forms.Control.Paint?displayProperty=nameWithType> event and accessing the <xref:System.Windows.Forms.PaintEventArgs.Graphics%2A> property of the <xref:System.Windows.Forms.PaintEventArgs?displayProperty=nameWithType> class. You can also create a <xref:System.Drawing.Graphics> object from an image by using the <xref:System.Drawing.Graphics.FromImage%2A> method. For more information about creating a <xref:System.Drawing.Graphics> object, see [How to: Create Graphics Objects for Drawing](/dotnet/framework/winforms/advanced/how-to-create-graphics-objects-for-drawing).
|
68 | 68 |
|
69 |
| - You can draw many different shapes and lines by using a <xref:System.Drawing.Graphics> object. For more information about how to draw lines and shapes, see the specific `Draw`*GraphicalElement* method for the line or shape you want to draw. These methods include <xref:System.Drawing.Graphics.DrawLine%2A>, <xref:System.Drawing.Graphics.DrawArc%2A>, <xref:System.Drawing.Graphics.DrawClosedCurve%2A>, <xref:System.Drawing.Graphics.DrawPolygon%2A>, and <xref:System.Drawing.Graphics.DrawRectangle%2A>. For more information about how to draw lines and shapes, see [Using a Pen to Draw Lines and Shapes](/dotnet/framework/winforms/advanced/using-a-pen-to-draw-lines-and-shapes) and [Using a Brush to Fill Shapes](/dotnet/framework/winforms/advanced/using-a-brush-to-fill-shapes). |
| 69 | + You can draw many different shapes and lines by using a <xref:System.Drawing.Graphics> object. For more information about how to draw lines and shapes, see the specific `Draw`*GraphicalElement* method for the line or shape you want to draw. These methods include <xref:System.Drawing.Graphics.DrawLine%2A>, <xref:System.Drawing.Graphics.DrawArc%2A>, <xref:System.Drawing.Graphics.DrawClosedCurve%2A>, <xref:System.Drawing.Graphics.DrawPolygon%2A>, and <xref:System.Drawing.Graphics.DrawRectangle%2A>. For more information about how to draw lines and shapes, see [Using a Pen to Draw Lines and Shapes](/dotnet/desktop/winforms/advanced/using-a-pen-to-draw-lines-and-shapes) and [Using a Brush to Fill Shapes](/dotnet/framework/winforms/advanced/using-a-brush-to-fill-shapes). |
70 | 70 |
|
71 | 71 | You can also draw images and icons by using the <xref:System.Drawing.Graphics.DrawImage%2A> and <xref:System.Drawing.Graphics.DrawIcon%2A> methods, respectively. To perform a bit-block transfer of color data from the screen to the drawing surface of the <xref:System.Drawing.Graphics> object, see <xref:System.Drawing.Graphics.CopyFromScreen%2A>. For more information about how to draw images with a <xref:System.Drawing.Graphics> object, see [Working with Images, Bitmaps, Icons, and Metafiles](/dotnet/desktop/winforms/advanced/images-bitmaps-and-metafiles).
|
72 | 72 |
|
@@ -7015,7 +7015,7 @@ The <see cref="T:System.Drawing.Graphics" /> object has a transform applied othe
|
7015 | 7015 | </remarks>
|
7016 | 7016 | <exception cref="T:System.ArgumentNullException">
|
7017 | 7017 | <paramref name="pen" /> is <see langword="null" />.</exception>
|
7018 |
| - <related type="Article" href="/dotnet/framework/winforms/advanced/using-a-pen-to-draw-lines-and-shapes">Using a Pen to Draw Lines and Shapes</related> |
| 7018 | + <related type="Article" href="/dotnet/desktop/winforms/advanced/using-a-pen-to-draw-lines-and-shapes">Using a Pen to Draw Lines and Shapes</related> |
7019 | 7019 | </Docs>
|
7020 | 7020 | </Member>
|
7021 | 7021 | <Member MemberName="DrawLine">
|
@@ -7085,7 +7085,7 @@ The <see cref="T:System.Drawing.Graphics" /> object has a transform applied othe
|
7085 | 7085 | </remarks>
|
7086 | 7086 | <exception cref="T:System.ArgumentNullException">
|
7087 | 7087 | <paramref name="pen" /> is <see langword="null" />.</exception>
|
7088 |
| - <related type="Article" href="/dotnet/framework/winforms/advanced/using-a-pen-to-draw-lines-and-shapes">Using a Pen to Draw Lines and Shapes</related> |
| 7088 | + <related type="Article" href="/dotnet/desktop/winforms/advanced/using-a-pen-to-draw-lines-and-shapes">Using a Pen to Draw Lines and Shapes</related> |
7089 | 7089 | </Docs>
|
7090 | 7090 | </Member>
|
7091 | 7091 | <Member MemberName="DrawLine">
|
@@ -7157,7 +7157,7 @@ The <see cref="T:System.Drawing.Graphics" /> object has a transform applied othe
|
7157 | 7157 | </remarks>
|
7158 | 7158 | <exception cref="T:System.ArgumentNullException">
|
7159 | 7159 | <paramref name="pen" /> is <see langword="null" />.</exception>
|
7160 |
| - <related type="Article" href="/dotnet/framework/winforms/advanced/using-a-pen-to-draw-lines-and-shapes">Using a Pen to Draw Lines and Shapes</related> |
| 7160 | + <related type="Article" href="/dotnet/desktop/winforms/advanced/using-a-pen-to-draw-lines-and-shapes">Using a Pen to Draw Lines and Shapes</related> |
7161 | 7161 | </Docs>
|
7162 | 7162 | </Member>
|
7163 | 7163 | <Member MemberName="DrawLine">
|
@@ -7229,7 +7229,7 @@ The <see cref="T:System.Drawing.Graphics" /> object has a transform applied othe
|
7229 | 7229 | </remarks>
|
7230 | 7230 | <exception cref="T:System.ArgumentNullException">
|
7231 | 7231 | <paramref name="pen" /> is <see langword="null" />.</exception>
|
7232 |
| - <related type="Article" href="/dotnet/framework/winforms/advanced/using-a-pen-to-draw-lines-and-shapes">Using a Pen to Draw Lines and Shapes</related> |
| 7232 | + <related type="Article" href="/dotnet/desktop/winforms/advanced/using-a-pen-to-draw-lines-and-shapes">Using a Pen to Draw Lines and Shapes</related> |
7233 | 7233 | </Docs>
|
7234 | 7234 | </Member>
|
7235 | 7235 | <MemberGroup MemberName="DrawLines">
|
|
0 commit comments