Quellcode durchsuchen

compdfkit(win) - 测量Demo 默认属性

zhuyi vor 1 Jahr
Ursprung
Commit
2fddcbb2fb

+ 4 - 2
Demo/Examples/Compdfkit_Tools/Common/BarControl/CPDFMeasureBarControl.xaml.cs

@@ -304,7 +304,8 @@ namespace Compdfkit_Tools.PDFControl
             polygonMeasureArgs.LineColor = Colors.Red;
             polygonMeasureArgs.LineWidth = 2;
             polygonMeasureArgs.Transparency = 1;
-            polygonMeasureArgs.FontColor = Colors.Red;
+            polygonMeasureArgs.FontColor = Colors.Black;
+            polygonMeasureArgs.FillColor = Colors.Transparent;
             polygonMeasureArgs.FontName = "Arial";
             polygonMeasureArgs.FontSize = 14;
             pdfViewer?.ClearSelectAnnots();
@@ -329,7 +330,8 @@ namespace Compdfkit_Tools.PDFControl
             rectPolygonMeasureArgs.IsOnlyDrawRect = true;
             rectPolygonMeasureArgs.LineWidth = 2;
             rectPolygonMeasureArgs.Transparency = 1;
-            rectPolygonMeasureArgs.FontColor = Colors.Red;
+            rectPolygonMeasureArgs.FontColor = Colors.Black;
+            rectPolygonMeasureArgs.FillColor = Colors.Transparent;
             rectPolygonMeasureArgs.FontName = "Arial";
             rectPolygonMeasureArgs.FontSize = 14;
             pdfViewer?.ClearSelectAnnots();

+ 1 - 0
Demo/Examples/Compdfkit_Tools/Measure/Property/PolygonalProperty.xaml.cs

@@ -171,6 +171,7 @@ namespace Compdfkit_Tools.Measure.Property
             attribDict[AnnotAttrib.Thickness] = annotArgs.LineWidth;
             attribDict[AnnotAttrib.LineStyle] = annotArgs.LineDash;
             attribDict[AnnotAttrib.FontColor] = annotArgs.FontColor;
+            attribDict[AnnotAttrib.FillColor] = annotArgs.FillColor;
             attribDict[AnnotAttrib.FontName] = annotArgs.FontName;
             attribDict[AnnotAttrib.IsBold] = annotArgs.IsBold;
             attribDict[AnnotAttrib.IsItalic] = annotArgs.IsItalic;