1. 首页
  2. 编程语言
  3. C#
  4. C#显示两张图片相同部分图像比较

C#显示两张图片相同部分图像比较

上传者: 2025-05-25 12:52:35上传 ZIP文件 13.72KB 热度 1次
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++) {
下载地址
用户评论