개정판 b1c2c6fe
Fit Sign image
Change-Id: I6a39244055366aa7e3804836f2bad8235e8b9246
KCOM/Controls/SignManager.xaml.cs | ||
---|---|---|
65 | 65 |
var _startY = pointes.Min(x => x.Y); |
66 | 66 |
|
67 | 67 |
var _actualWidth = pointes.Max(x => x.Right); |
68 |
_actualWidth = Math.Abs(_startX - _actualWidth); |
|
68 | 69 |
var _actualHeight = pointes.Max(x => x.Bottom); |
70 |
_actualHeight = Math.Abs(_startY - _actualHeight); |
|
69 | 71 |
|
70 | 72 |
var result = await ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseTaskClient.SetSignDataAsync( |
71 | 73 |
App.ViewInfo.UserID, signImage, (int)_startX, (int)_startY, (int)_actualWidth, (int)_actualHeight); |
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