프로젝트

일반

사용자정보

개정판 38d69491

ID38d69491020d2a565b7158e53b39c70500b84548
상위 3276cb1c
하위 92c9cab8

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

issue #00000 ctrl+S입력시 텍스트박스 입력 완료 되도록 수정

Change-Id: Id4ab97a53ab61022f5a2ac4d5ae63cd14338c2a7

차이점 보기:

ImageComparer/ComparerTestWPF/MainWindow.xaml.cs
61 61

  
62 62
            using (Markus.Image.ImageCompare imageCompare = new Markus.Image.ImageCompare())
63 63
            {
64
                var original = new System.Drawing.Bitmap(TxtOriginalImage.Text);
65
                var target = new System.Drawing.Bitmap(TxtTargetImage.Text);
64
                var original = new System.Drawing.Bitmap(TxtOriginalImage.Text,true);
65
                var target = new System.Drawing.Bitmap(TxtTargetImage.Text, true);
66 66

  
67 67
                var result = imageCompare.CompareDrawRects(original, target, new System.Drawing.Size(20, 20));
68 68
                
......
77 77
                target.Dispose();
78 78
            }
79 79

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

  
81
            ImageView imageView = new ImageView(bitmapSource);
82

  
83
            imageView.Show();
84
                imageView.Show();
85
            }
86
            else
87
            {
88
                MessageBox.Show("bitmapSource is null");
89
            }
84 90

  
85 91

  
86 92
            //ImageView imageView2 = new ImageView(TargetSource);
......
130 136
        private async void btTaskUri_Click(object sender, RoutedEventArgs e)
131 137
        {
132 138
            BitmapSource bitmapSource = null;
139
            //http://10.10.130.12:8977/TileSource/12345_Tile/24771794/2477179440/1.png
140
            //http://10.10.130.12:8977/TileSource/12345_Tile/24771794/2477179438/1.png
141

  
142

  
143

  
144

  
133 145

  
134 146
            using (Markus.Image.ImageCompare imageComparer = new Markus.Image.ImageCompare())
135 147
            {
136
                var result = await imageComparer.CompareDrawRectsAsync("http://10.11.252.3/TileSource/LPG_Tile/215/21544/9.png"
137
                    , "http://10.11.252.3/TileSource/LPG_Tile/211/21107/9.png", new System.Drawing.Size(20, 20));
148
                var rects = imageComparer.CompareReturnRects(TxtOriginalImage.Text, TxtTargetImage.Text, new System.Drawing.Size(20, 20));
149

  
150
                MessageBox.Show(rects.Count().ToString());
151

  
152
                var result = await imageComparer.CompareDrawRectsAsync(TxtOriginalImage.Text
153
                    , TxtTargetImage.Text, new System.Drawing.Size(20, 20));
138 154

  
139 155
                bitmapSource = result;
140 156

  

내보내기 Unified diff

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