File tree Expand file tree Collapse file tree 10 files changed +12
-11
lines changed
src/ImageSharp.Drawing/Shapes
tests/ImageSharp.Drawing.Tests/Shapes/PolygonClipper Expand file tree Collapse file tree 10 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 22// Licensed under the Six Labors Split License.
33
44using SixLabors . ImageSharp . Drawing . Processing ;
5- using SixLabors . ImageSharp . Drawing . Shapes . PolygonClipper ;
5+ using SixLabors . ImageSharp . Drawing . Shapes . PolygonGeometry ;
66
77namespace SixLabors . ImageSharp . Drawing ;
88
Original file line number Diff line number Diff line change 44using System . Diagnostics . CodeAnalysis ;
55using System . Runtime . CompilerServices ;
66
7- namespace SixLabors . ImageSharp . Drawing . Shapes . PolygonClipper ;
7+ namespace SixLabors . ImageSharp . Drawing . Shapes . Helpers ;
88
99/// <summary>
1010/// A helper type for avoiding allocations while building arrays.
Original file line number Diff line number Diff line change 22// Licensed under the Six Labors Split License.
33
44using System . Numerics ;
5- using SixLabors . ImageSharp . Drawing . Shapes . PolygonClipper ;
5+ using SixLabors . ImageSharp . Drawing . Shapes . PolygonGeometry ;
66
77namespace SixLabors . ImageSharp . Drawing ;
88
Original file line number Diff line number Diff line change 55using ClipperPolygon = SixLabors . PolygonClipper . Polygon ;
66using PolygonClipperAction = SixLabors . PolygonClipper . PolygonClipper ;
77
8- namespace SixLabors . ImageSharp . Drawing . Shapes . PolygonClipper ;
8+ namespace SixLabors . ImageSharp . Drawing . Shapes . PolygonGeometry ;
99
1010/// <summary>
1111/// Generates clipped shapes from one or more input paths using polygon boolean operations.
Original file line number Diff line number Diff line change 11// Copyright (c) Six Labors.
22// Licensed under the Six Labors Split License.
33
4- namespace SixLabors . ImageSharp . Drawing . Shapes . PolygonClipper ;
4+ namespace SixLabors . ImageSharp . Drawing . Shapes . PolygonGeometry ;
55
66/// <summary>
77/// Defines the polygon clipping type.
Original file line number Diff line number Diff line change 55using SixLabors . PolygonClipper ;
66using ClipperPolygon = SixLabors . PolygonClipper . Polygon ;
77
8- namespace SixLabors . ImageSharp . Drawing . Shapes . PolygonClipper ;
8+ namespace SixLabors . ImageSharp . Drawing . Shapes . PolygonGeometry ;
99
1010/// <summary>
1111/// Builders for <see cref="ClipperPolygon"/> from ImageSharp paths.
Original file line number Diff line number Diff line change 22// Licensed under the Six Labors Split License.
33
44using System . Runtime . CompilerServices ;
5+ using SixLabors . ImageSharp . Drawing . Shapes . Helpers ;
56
67#pragma warning disable SA1201 // Elements should appear in the correct order
7- namespace SixLabors . ImageSharp . Drawing . Shapes . PolygonClipper ;
8+ namespace SixLabors . ImageSharp . Drawing . Shapes . PolygonGeometry ;
89
910/// <summary>
1011/// Generates polygonal stroke outlines for vector paths using analytic joins and caps.
@@ -47,7 +48,7 @@ internal sealed class PolygonStroker
4748
4849 public double ApproximationScale { get ; set ; } = 1.0 ;
4950
50- public LineJoin LineJoin { get ; set ; } = LineJoin . MiterJoin ;
51+ public LineJoin LineJoin { get ; set ; } = LineJoin . BevelJoin ;
5152
5253 public LineCap LineCap { get ; set ; } = LineCap . Butt ;
5354
Original file line number Diff line number Diff line change 33
44using SixLabors . PolygonClipper ;
55
6- namespace SixLabors . ImageSharp . Drawing . Shapes . PolygonClipper ;
6+ namespace SixLabors . ImageSharp . Drawing . Shapes . PolygonGeometry ;
77
88/// <summary>
99/// Generates stroked and merged shapes using polygon stroking and boolean clipping.
Original file line number Diff line number Diff line change 33
44using System . Runtime . CompilerServices ;
55
6- namespace SixLabors . ImageSharp . Drawing . Shapes . PolygonClipper ;
6+ namespace SixLabors . ImageSharp . Drawing . Shapes . PolygonGeometry ;
77
88// TODO: We can improve the performance of some of the operations here by using unsafe casting to Vector128<double>
99// Like we do in PolygonClipper.
Original file line number Diff line number Diff line change 22// Licensed under the Six Labors Split License.
33
44using System . Numerics ;
5- using SixLabors . ImageSharp . Drawing . Shapes . PolygonClipper ;
5+ using SixLabors . ImageSharp . Drawing . Shapes . PolygonGeometry ;
66using SixLabors . ImageSharp . Drawing . Tests . TestUtilities ;
77using SixLabors . PolygonClipper ;
88
You can’t perform that action at this time.
0 commit comments