프로젝트

일반

사용자정보

개정판 a9a82876

IDa9a82876cd54d6a80b6a761203fcb81c5798b3c2
상위 8acc4862
하위 762737cd

김태성이(가) 약 2달 전에 추가함

issue #00000 export시 페이지 이미지 흐려지는 현상 수정

Change-Id: Ic8e9111a195008f0de03040d9dda92b486c0b778

차이점 보기:

KCOM/Controls/PrintControl.xaml.cs
465 465
            //{
466 466
            try
467 467
            {
468
                Load load = new Load();
469

  
470 468
                _definePages.Back_Image = new ImageBrush();
471 469
                //var defaultBitmapImage = new BitmapImage(new Uri(_DefaultTileUri + PageNo + ".png"));
472 470

  
......
505 503
                    printCanvas.Children.Clear();
506 504
                    printCanvas.Width = Convert.ToDouble(currentPage.PAGE_WIDTH);
507 505
                    printCanvas.Height = Convert.ToDouble(currentPage.PAGE_HEIGHT);
508
                    
509 506
                    printCanvas.Background = new ImageBrush{ ImageSource = new BitmapImage(uri)};
510

  
507
                    printCanvas.SnapsToDevicePixels = false;
508
                    printCanvas.UseLayoutRounding = false;
509
                    printCanvas.CacheMode = new BitmapCache(50);
510
                    RenderOptions.SetBitmapScalingMode(printCanvas, BitmapScalingMode.HighQuality);
511 511
                    //printCanvas.RenderTransformOrigin = new Point(0.5, 0.5);
512 512
                    //printCanvas.RenderTransform = new RotateTransform(currentPage.PAGE_ANGLE);
513 513
                    //ImageBrush background = new ImageBrush(bitmap);
......
515 515
                    //printCanvas.Background = new SolidColorBrush(Colors.Transparent);
516 516

  
517 517
                    Canvas canvas = new Canvas();
518

  
518
                    canvas.CacheMode = new BitmapCache(50);
519
                    canvas.SnapsToDevicePixels = false;
520
                    RenderOptions.SetBitmapScalingMode(canvas, BitmapScalingMode.HighQuality);
519 521
                    //foreach (var info in gridViewMarkup.SelectedItems.Cast<IKCOM.MarkupInfoItem>())
520 522
                    //{
521 523
                    //    load.User_Id = info.UserID;
......
538 540
                    var tasks = gridViewMarkup.SelectedItems.Cast<IKCOM.MarkupInfoItem>()
539 541
                                        .Select(async info =>
540 542
                                        {
543
                                            Load load = new Load();
541 544
                                            load.User_Id = info.UserID;
542 545
                                            load.document_id = _DocInfo.DOCUMENT_ID;
543 546
                                            load.Page_No = PageNo;
......
575 578
                                {
576 579
                                    var filepath = Path.Combine(TempImageDir, $"{PrintimgPath_List.Count() + 1}.png");
577 580

  
578
                                    if (export.ExportingFile(PrintView, printCanvas.Width, printCanvas.Height, filepath))
581
                                    if (export.ExportingFile(printCanvas, printCanvas.Width, printCanvas.Height, filepath))
579 582
                                    {
580 583
                                        PrintimgPath_List.Add(PrintimgPath_List.Count() + 1, filepath);
581 584
                                    }

내보내기 Unified diff

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