|
@@ -680,6 +680,16 @@ namespace ComPDFKit.Tool.DrawTool
|
|
|
lineSegment.IsSmoothJoin = true;
|
|
|
pathFigure.Segments.Add(lineSegment);
|
|
|
}
|
|
|
+ if(annotLine.Dash!=null && annotLine.Dash.Length>0)
|
|
|
+ {
|
|
|
+ DashStyle dash = new DashStyle();
|
|
|
+ foreach (var offset in annotLine.Dash)
|
|
|
+ {
|
|
|
+ dash.Dashes.Add(offset);
|
|
|
+ }
|
|
|
+ DrawPen.DashStyle = dash;
|
|
|
+ DrawPen.DashCap = PenLineCap.Flat;
|
|
|
+ }
|
|
|
Rect checkRect = pageBound;
|
|
|
RectangleGeometry rectGeometry = new RectangleGeometry();
|
|
|
drawRect = rectGeometry.Rect = checkRect;
|