From 5eb2cc507e9072a71b2176703e356c2ca916ba3d Mon Sep 17 00:00:00 2001 From: BobLd Date: Thu, 2 Apr 2020 16:44:41 +0100 Subject: [PATCH] Add CurrentClippingPath to CurrentGraphicsState --- src/UglyToad.PdfPig/Graphics/CurrentGraphicsState.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/UglyToad.PdfPig/Graphics/CurrentGraphicsState.cs b/src/UglyToad.PdfPig/Graphics/CurrentGraphicsState.cs index 223babbc..650a207b 100644 --- a/src/UglyToad.PdfPig/Graphics/CurrentGraphicsState.cs +++ b/src/UglyToad.PdfPig/Graphics/CurrentGraphicsState.cs @@ -13,6 +13,11 @@ namespace UglyToad.PdfPig.Graphics /// public class CurrentGraphicsState : IDeepCloneable { + /// + /// The current clipping path. + /// + public PdfPath CurrentClippingPath { get; set; } + /// /// The for this graphics state. /// @@ -131,7 +136,8 @@ namespace UglyToad.PdfPig.Graphics Smoothness = Smoothness, StrokeAdjustment = StrokeAdjustment, CurrentStrokingColor = CurrentStrokingColor, - CurrentNonStrokingColor = CurrentNonStrokingColor + CurrentNonStrokingColor = CurrentNonStrokingColor, + CurrentClippingPath = CurrentClippingPath }; } }