개정판 4f017ed3
Final ArrowTextControl 수정
Change-Id: Ifdd9876909e6a4ce288d70acb74a00b37e88e6a0
KCOM/Controls/Symbol.xaml.cs | ||
---|---|---|
162 | 162 |
lstSymbolPublic.ItemsSource = Custom_List; |
163 | 163 |
} |
164 | 164 |
|
165 |
public async Task<PngBitmapEncoder> symImageAsync(string data) |
|
165 |
public async Task<PngBitmapEncoder> symImageAsync(string data,double PageAngle)
|
|
166 | 166 |
{ |
167 | 167 |
|
168 | 168 |
Canvas _canvas = new Canvas(); |
169 | 169 |
_canvas.Background = Brushes.White; |
170 | 170 |
_canvas.Width = finalItem.BorderSize.Width; |
171 | 171 |
_canvas.Height = finalItem.BorderSize.Height; |
172 |
await MarkupParser.ParseAsync(App.ViewInfo.ProjectNO, data, _canvas, "#FFFF0000", "", ViewerDataModel.Instance.CancellationToken()); |
|
172 |
await MarkupParser.ParseAsync(App.ViewInfo.ProjectNO, data, _canvas, PageAngle, "#FFFF0000", "", ViewerDataModel.Instance.CancellationToken());
|
|
173 | 173 |
|
174 | 174 |
BitmapEncoder encoder = new PngBitmapEncoder(); |
175 | 175 |
|
... | ... | |
287 | 287 |
{ |
288 | 288 |
if (args.DialogResult.Value) |
289 | 289 |
{ |
290 |
PngBitmapEncoder _Encoder = await symImageAsync(data); |
|
290 |
PngBitmapEncoder _Encoder = await symImageAsync(data,ViewerDataModel.Instance.MarkupAngle);
|
|
291 | 291 |
|
292 | 292 |
System.IO.MemoryStream fs = new System.IO.MemoryStream(); |
293 | 293 |
_Encoder.Save(fs); |
... | ... | |
474 | 474 |
{ |
475 | 475 |
if (parse != "") |
476 | 476 |
{ |
477 |
System.Windows.Controls.Control item = await MarkupParser.ParseExAsync(ViewerDataModel.Instance.CancellationToken(),App.ViewInfo.ProjectNO, parse, ViewerDataModel.Instance.MarkupControls_USER, string.Empty, string.Empty); |
|
477 |
System.Windows.Controls.Control item = await MarkupParser.ParseExAsync(ViewerDataModel.Instance.CancellationToken(),App.ViewInfo.ProjectNO, parse, ViewerDataModel.Instance.MarkupControls_USER, ViewerDataModel.Instance.PageAngle, string.Empty, string.Empty);
|
|
478 | 478 |
(item as MarkupToPDF.Common.CommentUserInfo).CommentID = Commons.shortGuid(); |
479 | 479 |
(item as MarkupToPDF.Common.CommentUserInfo).SymbolID = id; |
480 | 480 |
//(item as MarkupToPDF.Common.CommentUserInfo).GroupID = group_id; |
... | ... | |
497 | 497 |
|
498 | 498 |
var pageWidth = ViewerDataModel.Instance.ImageViewWidth; |
499 | 499 |
var pageHeight = ViewerDataModel.Instance.ImageViewHeight; |
500 |
var angle = Common.ViewerDataModel.Instance.Angle; |
|
500 |
var angle = Common.ViewerDataModel.Instance.MarkupAngle;
|
|
501 | 501 |
|
502 | 502 |
Point pagePoint = new Point(pageWidth/2, pageHeight/2); |
503 | 503 |
|
내보내기 Unified diff