Skip to content

Commit 3a37a5d

Browse files
Merge pull request #61 from EgoPingvina/patch-1
Update gettingstarted.md
2 parents 39f7e31 + 7140ea6 commit 3a37a5d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/imagesharp.drawing/gettingstarted.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
### ImageSharp.Drawing - Paths and Polygons
77

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.
99

1010
- @"SixLabors.ImageSharp.Drawing.IPath" Root interface defining a path/polygon and the type that the rasterizer uses to generate pixel output.
1111
- 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);
5454
Pen pen = Pens.DashDot(Color.Green, 5);
5555
IPath yourPolygon = new Star(x: 100.0f, y: 100.0f, prongs: 5, innerRadii: 20.0f, outerRadii:30.0f);
5656

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.
5858
image.Mutate(x=> x.Fill(options, brush, yourPolygon)
5959
.Draw(option, pen, yourPolygon));
6060
```
@@ -105,10 +105,10 @@ RichTextOptions options = new(font)
105105
HorizontalAlignment = HorizontalAlignment.Right // Right align
106106
};
107107

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);
110110
string text = "sample text";
111111

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));
114114
```

0 commit comments

Comments
 (0)