Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Image1 much with Image2 ? (Urgent Help)

Posted on 2008-09-29
4
Medium Priority
?
315 Views
Last Modified: 2010-04-30
Hi, i have been searching for long time and i didnt find anything that can help me to do this, what i want to do is to find a way to check if the image1 much with the image2. Any suggestions,tips or even solution to my question will be very appriciated. If you didnt understand something please feel free to ask me.
0
Comment
Question by:KingSencat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 13

Expert Comment

by:TechTiger007
ID: 22599390
I understand that you want to compare two images when you say image1 much with the image2 (a match). If that is what you are looking for then I dont think you have any inbuilt support in VB to do this. You can look for some third party image processing tools. But if you are checking if two files are exactly same then probably you can open the files and compare bytes.
0
 
LVL 10

Accepted Solution

by:
c0ldfyr3 earned 2000 total points
ID: 22601645
0
 

Expert Comment

by:Hipposaver
ID: 22604023
something like

dim bPic as byte
dim bPic1 as byte
Open Picture1FilePath For Binary As #1
Open Picture2FilePath for Binary as #2
if lof(1) = lof(2) then
for x = 1 to lof(1)
get 1,x,bPic
get 2,x,bPic1
if bPic <> bPic1 then
msgbox "not the same"
exit for
end if
next
else
msgbox "not the same"
end if

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question