Skip to content

Commit

Permalink
Update refs
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBobSquarePants committed Sep 15, 2023
1 parent 3a37a5d commit dcbfd51
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions articles/fonts/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
### What is Fonts?
Fonts is a font loading and layout library built primarily to provide text drawing support to ImageSharp.Drawing.

Built against [.NET Standard 2.0](https://docs.microsoft.com/en-us/dotnet/standard/net-standard), Fonts can be used in device, cloud, and embedded/IoT scenarios.
Built against [.NET 6](https://docs.microsoft.com/en-us/dotnet/standard/net-standard), Fonts can be used in device, cloud, and embedded/IoT scenarios.

### License
Fonts is licensed under under the terms of [Apache License, Version 2.0](https://opensource.org/licenses/Apache-2.0). Commercial support licensing options are available in addition to this license, see https://sixlabors.com/pricing for details.
Fonts is licensed under the terms of the [Six Labors Split License, Version 1.0](https://github.com/SixLabors/Fonts/blob/main/LICENSE). See https://sixlabors.com/pricing for commercial licensing details.

### Installation

Expand Down
18 changes: 9 additions & 9 deletions articles/imagesharp.drawing/gettingstarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ using SixLabors.ImageSharp.Drawing.Processing;

Image image = ...; // create any way you like.
IPath yourPolygon = new Star(x: 100.0f, y: 100.0f, prongs: 5, innerRadii: 20.0f, outerRadii:30.0f);
Star star = new(x: 100.0f, y: 100.0f, prongs: 5, innerRadii: 20.0f, outerRadii:30.0f);

image.Mutate( x=> x.Fill(Color.Red, yourPolygon)); // fill the star with red
image.Mutate( x=> x.Fill(Color.Red, star)); // fill the star with red
```

Expand All @@ -50,13 +50,13 @@ DrawingOptions options = new()
}
};

Brush brush = Brushes.Horizontal(Color.Red, Color.Blue);
Pen pen = Pens.DashDot(Color.Green, 5);
IPath yourPolygon = new Star(x: 100.0f, y: 100.0f, prongs: 5, innerRadii: 20.0f, outerRadii:30.0f);
PatternBrush brush = Brushes.Horizontal(Color.Red, Color.Blue);
PatternPen pen = Pens.DashDot(Color.Green, 5);
Star star = new(x: 100.0f, y: 100.0f, prongs: 5, innerRadii: 20.0f, outerRadii:30.0f);

// Draws a star with horizontal red and blue hatching with a dash-dot pattern outline.
image.Mutate(x=> x.Fill(options, brush, yourPolygon)
.Draw(option, pen, yourPolygon));
image.Mutate(x=> x.Fill(options, brush, star)
.Draw(option, pen, star));
```

### API Cornerstones for Polygon Rasterization
Expand Down Expand Up @@ -105,8 +105,8 @@ RichTextOptions options = new(font)
HorizontalAlignment = HorizontalAlignment.Right // Right align
};

var brush = Brushes.Horizontal(Color.Red, Color.Blue);
var pen = Pens.DashDot(Color.Green, 5);
PatternBrush brush = Brushes.Horizontal(Color.Red, Color.Blue);
PatternPen pen = Pens.DashDot(Color.Green, 5);
string text = "sample text";

// Draws the text with horizontal red and blue hatching with a dash-dot pattern outline.
Expand Down
4 changes: 2 additions & 2 deletions articles/imagesharp.drawing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ ImageSharp.Drawing is a library built on top of ImageSharp to providing 2D Drawi

ImageSharp.Drawing is designed from the ground up to be flexible and extensible. The library provides API endpoints for common vector and text processing operations adding the building blocks for building custom images.

Built against [.NET Standard 2.0](https://docs.microsoft.com/en-us/dotnet/standard/net-standard), ImageSharp.Drawing can be used in device, cloud, and embedded/IoT scenarios.
Built against [.NET 6](https://docs.microsoft.com/en-us/dotnet/standard/net-standard), ImageSharp.Drawing can be used in device, cloud, and embedded/IoT scenarios.

### License
ImageSharp.Drawing is licensed under under the terms of [Apache License, Version 2.0](https://opensource.org/licenses/Apache-2.0). Commercial support licensing options are available in addition to this license, see https://sixlabors.com/pricing for details.
ImageSharp.Drawing is licensed under the terms of the [Six Labors Split License, Version 1.0](https://github.com/SixLabors/ImageSharp.Drawing/blob/main/LICENSE). See https://sixlabors.com/pricing for commercial licensing details.

### Installation

Expand Down
2 changes: 1 addition & 1 deletion ext/Fonts
Submodule Fonts updated 398 files
2 changes: 1 addition & 1 deletion ext/ImageSharp.Drawing

0 comments on commit dcbfd51

Please sign in to comment.