C#显示两张图片相同部分图像比较
Bitmap imgFrst = new Bitmap(pictureBox1.Image); Bitmap imgScnd = new Bitmap(pictureBox2.Image); int height = imgFrst.Height < imgScnd.Height ? imgFrst.Height : imgScnd.Height; int width = imgFrst.Width < imgScnd.Width ? imgFrst.Width : imgScnd.Width; Bitmap fussion=new Bitmap(width,height); for (int i = 0; i < fussion.Height; i++) { for (int j = 0; j < fussion.Width; j++) {
下载地址
用户评论