프로젝트

일반

사용자정보

개정판 1af0f150

ID1af0f150abd01ee9d400575c2cc8610fb2e2fd06
상위 b79d6e7f
하위 b1c2c6fe

이지연이(가) 9달 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)