|
@@ -37,6 +37,7 @@ namespace ComPDFKit.Controls.PDFControlUI
|
|
return new AnnotHistory();
|
|
return new AnnotHistory();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
public CPDFCloudUI()
|
|
public CPDFCloudUI()
|
|
{
|
|
{
|
|
InitializeComponent();
|
|
InitializeComponent();
|
|
@@ -168,6 +169,10 @@ namespace ComPDFKit.Controls.PDFControlUI
|
|
|
|
|
|
private void CtlFillColorPicker_ColorChanged(object sender, EventArgs e)
|
|
private void CtlFillColorPicker_ColorChanged(object sender, EventArgs e)
|
|
{
|
|
{
|
|
|
|
+ if (annotParam == null)
|
|
|
|
+ {
|
|
|
|
+ PropertyChanged?.Invoke(this, GetPolygonData());
|
|
|
|
+ }
|
|
if (IsLoadedData)
|
|
if (IsLoadedData)
|
|
{
|
|
{
|
|
if (annotCore != null && annotCore.IsValid())
|
|
if (annotCore != null && annotCore.IsValid())
|
|
@@ -185,6 +190,10 @@ namespace ComPDFKit.Controls.PDFControlUI
|
|
brush.Color.G,
|
|
brush.Color.G,
|
|
brush.Color.B
|
|
brush.Color.B
|
|
});
|
|
});
|
|
|
|
+ if(brush.Color.A == 0)
|
|
|
|
+ {
|
|
|
|
+ polygonAnnotation.ClearBgColor();
|
|
|
|
+ }
|
|
history.CurrentParam = ParamConverter.CPDFDataConverterToAnnotParam(history.PDFDoc, annotCore.Page.PageIndex, polygonAnnotation);
|
|
history.CurrentParam = ParamConverter.CPDFDataConverterToAnnotParam(history.PDFDoc, annotCore.Page.PageIndex, polygonAnnotation);
|
|
|
|
|
|
annotCore.UpdateAp();
|
|
annotCore.UpdateAp();
|
|
@@ -238,10 +247,14 @@ namespace ComPDFKit.Controls.PDFControlUI
|
|
{
|
|
{
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+
|
|
Color lineColor = Color.FromRgb(polygonParam.LineColor[0], polygonParam.LineColor[1], polygonParam.LineColor[2]);
|
|
Color lineColor = Color.FromRgb(polygonParam.LineColor[0], polygonParam.LineColor[1], polygonParam.LineColor[2]);
|
|
|
|
+ Color fillColor = Color.FromRgb(polygonParam.FillColor[0], polygonParam.FillColor[1], polygonParam.FillColor[2]);
|
|
|
|
|
|
ctlBorderColorPicker.SetCheckedForColor(lineColor);
|
|
ctlBorderColorPicker.SetCheckedForColor(lineColor);
|
|
|
|
|
|
|
|
+ ctlFillColorPicker.SetCheckedForColor(fillColor);
|
|
|
|
+
|
|
double opacity = polygonParam.Transparency / 255.0 * 100.0;
|
|
double opacity = polygonParam.Transparency / 255.0 * 100.0;
|
|
CPDFOpacityControl.OpacityValue = (int)Math.Ceiling(opacity);
|
|
CPDFOpacityControl.OpacityValue = (int)Math.Ceiling(opacity);
|
|
|
|
|
|
@@ -263,6 +276,8 @@ namespace ComPDFKit.Controls.PDFControlUI
|
|
ctlLineStyle.DashStyle = new DashStyle(dashArray, 0);
|
|
ctlLineStyle.DashStyle = new DashStyle(dashArray, 0);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
NoteTextBox.Text = polygonParam.Content;
|
|
NoteTextBox.Text = polygonParam.Content;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -277,7 +292,7 @@ namespace ComPDFKit.Controls.PDFControlUI
|
|
DashStyle = ctlLineStyle.DashStyle,
|
|
DashStyle = ctlLineStyle.DashStyle,
|
|
IsMeasured = false,
|
|
IsMeasured = false,
|
|
Thickness = CPDFThicknessControl.Thickness,
|
|
Thickness = CPDFThicknessControl.Thickness,
|
|
- Opacity = CPDFOpacityControl.Opacity,
|
|
|
|
|
|
+ Opacity = CPDFOpacityControl.OpacityValue,
|
|
Note = NoteTextBox.Text
|
|
Note = NoteTextBox.Text
|
|
};
|
|
};
|
|
|
|
|