개정판 b1c2c6fe
Fit Sign image
Change-Id: I6a39244055366aa7e3804836f2bad8235e8b9246
MarkupToPDF/Controls/Etc/SignControl.cs | ||
---|---|---|
17 | 17 |
using MarkupToPDF.Serialize.S_Control; |
18 | 18 |
using System.Windows.Media.Imaging; |
19 | 19 |
using System.Threading.Tasks; |
20 |
using static System.Windows.Forms.AxHost; |
|
20 | 21 |
|
21 | 22 |
//강인구 추가 |
22 | 23 |
namespace MarkupToPDF.Controls.Etc |
... | ... | |
303 | 304 |
pathGeometry.Figures = new PathFigureCollection(); |
304 | 305 |
pathFigure.IsClosed = true; |
305 | 306 |
pathGeometry.Figures.Add(pathFigure); |
307 |
|
|
306 | 308 |
this.Base_Image.Width = pathGeometry.Bounds.Width; |
307 | 309 |
this.Base_Image.Height = pathGeometry.Bounds.Height; |
310 |
|
|
308 | 311 |
this.Tag = pathGeometry; |
309 | 312 |
|
310 | 313 |
Canvas.SetLeft(this, MathSet.RotateAbout(mid, mid, AngleData).X - this.Base_Image.Width / 2); |
... | ... | |
359 | 362 |
stream.Close(); |
360 | 363 |
|
361 | 364 |
this.SignImage = returnImage; |
365 |
|
|
362 | 366 |
} |
363 | 367 |
|
364 | 368 |
this.PointSet = new List<Point> |
내보내기 Unified diff