개정판 1af0f150
issue #000: TextControl thikness 굵기에 따라 글씨가 보이지 않는 현상, cloudText 진행중
Change-Id: I14b60cb925673f60292e16301f43403052929441
MarkupToPDF/Controls/Polygon/CloudControl.cs | ||
---|---|---|
717 | 717 |
/// <param name="p2"></param> |
718 | 718 |
/// <param name="reverse"></param> |
719 | 719 |
/// <returns></returns> |
720 |
public static PathFigure GenerateLineWithCloud(Point p1, Point p2, double arcLength_, bool reverse) |
|
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 |
|
|
724 |
var radius = arcLength_; |
|
725 |
double overlap = 5.5D / 6D; |
|
726 |
|
|
727 |
double delta = 2 * radius * overlap; |
|
728 |
|
|
729 |
pathFigure.StartPoint = p1; |
|
723 |
if (linesize_ == -20) |
|
724 |
linesize_ = arcLength_; |
|
725 |
var radius = linesize_;// linesize_;// arcLength_; |
|
726 |
double overlap = 5.5D / 6D; |
|
727 |
double delta = 2 * radius * overlap; |
|
730 | 728 |
pathFigure.IsClosed = false; |
731 | 729 |
pathFigure.IsFilled = false; |
732 |
var prev = p2; |
|
733 |
|
|
734 | 730 |
var curr = p1; |
731 |
var prev = p2; |
|
735 | 732 |
|
736 | 733 |
var dx = curr.X - prev.X; |
737 | 734 |
var dy = curr.Y - prev.Y; |
738 |
|
|
735 |
pathFigure.StartPoint = p1; // |
|
739 | 736 |
var len = Math.Sqrt(dx * dx + dy * dy); |
740 | 737 |
|
741 | 738 |
dx = dx / len; |
내보내기 Unified diff