프로젝트

일반

사용자정보

개정판 4f017ed3

ID4f017ed300546aa9269405c789f27a9b4fbadb49
상위 d2279f18
하위 324fcf3e

김태성이(가) 약 4년 전에 추가함

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

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