프로젝트

일반

사용자정보

개정판 c1659a98

IDc1659a9847e29a74c5f14cdac86ea7a689499231
상위 520b8e45
하위 f1dd3ed6

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

issue #0000 Markus.Image.ImageCompare 추가

Change-Id: I82eafc1d99c6765d77546e28ba6151a4766026a5

차이점 보기:

ImageComparer/ComparerTestWPF/MainWindow.xaml.cs
68 68
                
69 69
                bitmapSource = imageCompare.CreateWriteableBitmapFromBitmap(result);
70 70

  
71
                //var result2 = imageComparer.CompareDrawRects(target, original, new System.Drawing.Size(20, 20));
72
                //TargetSource = imageComparer.CreateBitmapSourceFromBitmap(result2);
73
                //result2.Dispose();
74
                //result2 = null;
75
                
71
                var original2= new System.Drawing.Bitmap(TxtOriginalImage.Text, true);
72
                var target2 = new System.Drawing.Bitmap(TxtTargetImage.Text, true);
73

  
74

  
75
                var result2 = imageCompare.CompareDrawRects(target2, original2, new System.Drawing.Size(20, 20));
76
                TargetSource = imageCompare.CreateBitmapSourceFromBitmap(result2);
77
            
76 78
                original.Dispose();
77 79
                target.Dispose();
78 80
            }
79 81

  
80
            if (bitmapSource != null)
82
            if (bitmapSource != null && TargetSource != null)
81 83
            {
82 84
                ImageView imageView = new ImageView(bitmapSource);
83 85

  
84 86
                imageView.Show();
87

  
88

  
89
                ImageView imageView2 = new ImageView(TargetSource);
90

  
91
                imageView2.Show();
85 92
            }
86 93
            else
87 94
            {
88 95
                MessageBox.Show("bitmapSource is null");
89 96
            }
90 97

  
91

  
92
            //ImageView imageView2 = new ImageView(TargetSource);
93

  
94
            //imageView2.Show();
95 98
        }
96 99

  
97 100
        private async void btTask_Click(object sender, RoutedEventArgs e)

내보내기 Unified diff

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