Browse Source

ComPDFKit.Tool(win) - 补充Path对象设置参数

TangJinZhou 4 months ago
parent
commit
3f4b37700f

+ 5 - 0
Demo/Examples/ComPDFKit.Tool/SettingParam/PDFEditParam/PathEditParam.cs

@@ -9,6 +9,9 @@ namespace ComPDFKit.Tool
         {
             EditType = CPDFEditType.EditPath;
         }
+
+        public byte[] StrokeColor { get; set; }
+        public byte[] FillColor { get; set; }
         public CRect ClipRect { get; set; }
         public int Rotate { get; set; }
 
@@ -18,6 +21,8 @@ namespace ComPDFKit.Tool
             if (pathTransfer == null || !base.CopyTo(pathTransfer))
                 return false;
 
+            pathTransfer.StrokeColor = StrokeColor;
+            pathTransfer.FillColor = FillColor;
             pathTransfer.ClipRect = ClipRect;
             pathTransfer.Rotate = Rotate;
             return true;