如何比较图片框中的图像 [英] how to compare images in picture boxes

查看:73
本文介绍了如何比较图片框中的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在使用Visual Studio2008.我有一个问题,我无法解决如何解决它的问题,而且在任何地方都找不到解决方案.

我在表单上有15个图片框,但是我想知道如何比较图片框中的图像以查看它们是否是同一张图片.

这些图片是从我的项目资源文件中加载的,根据对互联网上文​​章的研究,我无法使用pictureBox1.imageLocation,因为这些图片位于资源文件中.

我试图逐字节比较图像,但这不是很有效.

还有其他解决方法吗?

Hi, I am using Visual Studio 2008. I have an issue I can''t wrap my mind aroung on how to solve it and I can''t find a solution anywhere.

I have 15 picture boxes on a form, but I want to know how to compare the images in the picture boxes to see if they are the same picture.

The pictures are loaded from my projects resources file, and according to research done on articles on the internet, I cannot use the pictureBox1.imageLocation, because the images are lying in the resources file.

I have tried to compare the images byte by byte, but this is not very efficient.

Is there any other way to solve this?

推荐答案

请参见此处 [ ^ ].

坦白地说,我不知道这是否会比您的代码提供更高的效率-您可以尝试一下.
See here[^].

Honestly speaking, I dont know if this would offer any more efficieny than your code though - you could try it out.


这篇关于如何比较图片框中的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆