반응형 C# 이미지서치1 [C# Windows 프로그래밍] 이미지값을 배열에 담아서 두 이미지 비교하기 이미지의 Pixel값을 하나씩 불러와서 배열에 담고, 그 배열에 있는 값들을 서로 비교하면서 이미지가 같은지 틀린지를 구분할 수있다. private void Form1_Load(object sender, EventArgs e) { Bitmap bmp = new Bitmap("test1.jpg"); pictureBox1.Image = bmp; Bitmap bmp2 = new Bitmap("test2.jpg"); pictureBox2.Image = bmp2; } 먼저 이해를 쉽게 하기 위해 PictureBox1,PictureBox2를 폼에 띄워놓고 비교할 이미지를 불러온다. public void test() { Bitmap bmp1 = new Bitmap(pictureBox1.Image); Bitmap bm.. 2020. 4. 24. 이전 1 다음 반응형