개정판 666bb823
issue #000: textControl ArcLength Save안되는 현상 수정, Line 두께에 따라 Textbox 글씨가 안보이는 현상 수정중, 텍스트Control들 LineSize만큼 넓혔을 경우 회전시 두개의 박스가 따로 노는 현상으로 주석
Change-Id: I0b51d8d41c74ab458b611de2a41ce777d613705b
MarkupToPDF/Controls/Polygon/CloudControl.cs | ||
---|---|---|
720 | 720 |
public static PathFigure GenerateLineWithCloud(Point p1, Point p2, double arcLength_, bool reverse, double linesize_ = -20) |
721 | 721 |
{ |
722 | 722 |
PathFigure pathFigure = new PathFigure(); |
723 |
if (linesize_ == -20) |
|
724 |
linesize_ = arcLength_; |
|
725 |
var radius = linesize_;// linesize_;// arcLength_;
|
|
723 |
//if (linesize_ == -20)
|
|
724 |
// linesize_ = arcLength_;
|
|
725 |
var radius = arcLength_; |
|
726 | 726 |
double overlap = 5.5D / 6D; |
727 | 727 |
double delta = 2 * radius * overlap; |
728 | 728 |
pathFigure.IsClosed = false; |
... | ... | |
732 | 732 |
|
733 | 733 |
var dx = curr.X - prev.X; |
734 | 734 |
var dy = curr.Y - prev.Y; |
735 |
pathFigure.StartPoint = p1; // |
|
735 |
pathFigure.StartPoint = p1; //new Point(p1.X + (40 * dx), p1.Y + (40 * dy));//
|
|
736 | 736 |
var len = Math.Sqrt(dx * dx + dy * dy); |
737 | 737 |
|
738 | 738 |
dx = dx / len; |
... | ... | |
754 | 754 |
|
755 | 755 |
if(!double.IsNaN(x) && !double.IsNaN(y)) |
756 | 756 |
{ |
757 |
arcSeg.Point = new Point(x, y); |
|
757 |
arcSeg.Point = new Point(x, y); // (x + (40 * dx), y + (40 * dy));
|
|
758 | 758 |
arcSeg.Size = new Size(radius, radius); |
759 | 759 |
arcSeg.IsLargeArc = true; |
760 | 760 |
|
... | ... | |
771 | 771 |
{ |
772 | 772 |
pathFigure.StartPoint = arcSeg.Point; |
773 | 773 |
} |
774 |
|
|
774 | 775 |
pathFigure.Segments.Add(arcSeg); |
775 | 776 |
|
776 | 777 |
} |
내보내기 Unified diff