개정판 e7334a0c
issue #000: Stamp 회전 시 크기가 커지는 현상 수정
Change-Id: I82384773675afd8bd72977ada5f0e2409c85d0d4
MarkupToPDF/Controls/Etc/SymControlN.cs | ||
---|---|---|
43 | 43 |
{ |
44 | 44 |
this.PointSet = symControlN.PointSet.ConvertAll(x => new Point(x.X, x.Y)); |
45 | 45 |
this.StartPoint = new Point(symControlN.StartPoint.X, symControlN.StartPoint.Y); |
46 |
this.TopRightPoint = new Point(symControlN.TopRightPoint.X, symControlN.TopRightPoint.Y); |
|
46 | 47 |
this.EndPoint = new Point(symControlN.EndPoint.X, symControlN.EndPoint.Y); |
47 |
this.CommentAngle = symControlN.CommentAngle; |
|
48 | 48 |
this.LeftBottomPoint = new Point(symControlN.LeftBottomPoint.X, symControlN.LeftBottomPoint.Y); |
49 |
this.TopRightPoint = new Point(symControlN.TopRightPoint.X, symControlN.TopRightPoint.Y); |
|
49 |
this.PointSet = symControlN.PointSet.ConvertAll(x => new Point(x.X, x.Y)); |
|
50 |
this.CommentAngle = symControlN.CommentAngle; |
|
50 | 51 |
this.Opacity = symControlN.Opacity; |
51 | 52 |
this.PathXathData = symControlN.PathXathData; |
52 | 53 |
this.Memo = symControlN.Memo; |
... | ... | |
235 | 236 |
this.EndPoint, |
236 | 237 |
this.TopRightPoint, |
237 | 238 |
}); |
238 |
double AngleData = 0;
|
|
239 |
double AngleData = this.CommentAngle * -1;
|
|
239 | 240 |
|
240 | 241 |
PathFigure pathFigure = new PathFigure(); |
241 | 242 |
pathFigure.StartPoint = MathSet.RotateAbout(mid, this.StartPoint, AngleData); |
... | ... | |
352 | 353 |
public override void UpdateControl() |
353 | 354 |
{ |
354 | 355 |
this.StartPoint = new Point(this.PointSet[0].X, this.PointSet[0].Y); |
355 |
this.LeftBottomPoint = new Point(this.PointSet[1].X, this.PointSet[1].Y); |
|
356 |
this.EndPoint = new Point(this.PointSet[2].X, this.PointSet[2].Y); |
|
356 |
this.LeftBottomPoint = new Point(this.PointSet[1].X, this.PointSet[1].Y); |
|
357 | 357 |
this.TopRightPoint = new Point(this.PointSet[3].X, this.PointSet[3].Y); |
358 |
this.EndPoint = new Point(this.PointSet[2].X, this.PointSet[2].Y); |
|
358 | 359 |
this.SetViewBox(); |
359 | 360 |
} |
360 | 361 |
|
내보내기 Unified diff