|
5 | 5 |
|
6 | 6 | ### ImageSharp.Drawing - Paths and Polygons
|
7 | 7 |
|
8 |
| -ImageSharp.Drawing provides several classes for build and manipulating various shapes and paths. |
| 8 | +ImageSharp.Drawing provides several classes for building and manipulating various shapes and paths. |
9 | 9 |
|
10 | 10 | - @"SixLabors.ImageSharp.Drawing.IPath" Root interface defining a path/polygon and the type that the rasterizer uses to generate pixel output.
|
11 | 11 | - This `SixLabors.ImageSharp.Drawing` namespace contains a variety of available polygons to speed up your drawing process.
|
@@ -54,7 +54,7 @@ Brush brush = Brushes.Horizontal(Color.Red, Color.Blue);
|
54 | 54 | Pen pen = Pens.DashDot(Color.Green, 5);
|
55 | 55 | IPath yourPolygon = new Star(x: 100.0f, y: 100.0f, prongs: 5, innerRadii: 20.0f, outerRadii:30.0f);
|
56 | 56 |
|
57 |
| -// Draws a star with horizontal red and blue hatching with a dash dot pattern outline. |
| 57 | +// Draws a star with horizontal red and blue hatching with a dash-dot pattern outline. |
58 | 58 | image.Mutate(x=> x.Fill(options, brush, yourPolygon)
|
59 | 59 | .Draw(option, pen, yourPolygon));
|
60 | 60 | ```
|
@@ -105,10 +105,10 @@ RichTextOptions options = new(font)
|
105 | 105 | HorizontalAlignment = HorizontalAlignment.Right // Right align
|
106 | 106 | };
|
107 | 107 |
|
108 |
| -IBrush brush = Brushes.Horizontal(Color.Red, Color.Blue); |
109 |
| -IPen pen = Pens.DashDot(Color.Green, 5); |
| 108 | +var brush = Brushes.Horizontal(Color.Red, Color.Blue); |
| 109 | +var pen = Pens.DashDot(Color.Green, 5); |
110 | 110 | string text = "sample text";
|
111 | 111 |
|
112 |
| -// Draws the text with horizontal red and blue hatching with a dash dot pattern outline. |
113 |
| -image.Mutate(x=> x.DrawText(options, text, brush, pen); |
| 112 | +// Draws the text with horizontal red and blue hatching with a dash-dot pattern outline. |
| 113 | +image.Mutate(x=> x.DrawText(options, text, brush, pen)); |
114 | 114 | ```
|
0 commit comments