Browse Source

bug - Freetext透明度参数设置问题

sunhaonan 11 months ago
parent
commit
60cdec86a9

+ 1 - 1
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFFreehandUI.xaml.cs

@@ -122,7 +122,7 @@ namespace Compdfkit_Tools.PDFControlUI
                 return;
             }
             ColorPickerControl.Brush = new SolidColorBrush(ParamConverter.ConverterByteForColor(inkParam.InkColor));
-            CPDFOpacityControl.OpacityValue = (int)(inkParam.Transparency * 100);
+            CPDFOpacityControl.OpacityValue = (int)(inkParam.Transparency / 255D * 100);
             CPDFThicknessControl.Thickness = Convert.ToInt16(inkParam.Thickness);
             ColorPickerControl.SetCheckedForColor(ParamConverter.ConverterByteForColor(inkParam.InkColor));
             NoteTextBox.Text = inkParam.Content;