From 2b685471318b3f41e958e2950cb5a278af9f8904 Mon Sep 17 00:00:00 2001 From: BobLd Date: Thu, 2 Apr 2020 16:24:12 +0100 Subject: [PATCH] Moving PdfPath from PdfPig.Core to PdfPig Add FillColor, StrokeColor, LineWidth, LineDashPattern and LineCapStyle to PdfPath. --- .../Graphics}/PdfPath.cs | 35 ++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) rename src/{UglyToad.PdfPig.Core => UglyToad.PdfPig/Graphics}/PdfPath.cs (52%) diff --git a/src/UglyToad.PdfPig.Core/PdfPath.cs b/src/UglyToad.PdfPig/Graphics/PdfPath.cs similarity index 52% rename from src/UglyToad.PdfPig.Core/PdfPath.cs rename to src/UglyToad.PdfPig/Graphics/PdfPath.cs index 50205245..376f2d00 100644 --- a/src/UglyToad.PdfPig.Core/PdfPath.cs +++ b/src/UglyToad.PdfPig/Graphics/PdfPath.cs @@ -1,6 +1,9 @@ -namespace UglyToad.PdfPig.Core +namespace UglyToad.PdfPig.Graphics { using System.Collections.Generic; + using UglyToad.PdfPig.Core; + using UglyToad.PdfPig.Graphics.Colors; + using UglyToad.PdfPig.Graphics.Core; /// /// A path is made up of one or more disconnected subpaths, each comprising a sequence of connected segments. The topology of the path is unrestricted: it may be concave or convex, may contain multiple subpaths representing disjoint areas, and may intersect itself in arbitrary ways. @@ -18,6 +21,36 @@ /// public bool IsClipping { get; private set; } + /// + /// + /// + public IColor FillColor { get; set; } + + /// + /// + /// + public IColor StrokeColor { get; set; } + + /// + /// Thickness in user space units of path to be stroked. + /// + public double LineWidth { get; set; } = double.NaN; + + /// + /// The pattern to be used for stroked lines. + /// + public LineDashPattern? LineDashPattern { get; set; } + + /// + /// The cap style to be used for stroked lines. + /// + public LineCapStyle LineCapStyle { get; set; } + + /// + /// The join style to be used for stroked lines. + /// + public LineJoinStyle LineJoinStyle { get; set; } + /// /// Set the clipping mode for this path. ///