Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compare images
#1
something wrong?

Code:
Copy      Help
str a="$Desktop$\prueba.bmp"
a.getclip(CF_BITMAP)
str b="$Desktop$\prueba3.bmp"
b.getclip(CF_BITMAP)

if(a<>b) mes("<>")
#2
getclip does not store the clipboard data to the variable when CF_BITMAP format is specified. It only writes the bitmap to the file. You can then compare files:

...
a.getfile(a)
b.getfile(b)
...
#3
Ok
#4
Is it possible to compare the files to get the X and Y coordinates of the first occurrence of a difference is found in the second image?
#5
Quick Macros does not have such function.
Could get all pixels and compare in loop, but in QM it is slow. Could use C or C#, but in any case need some programming.
Or find a library that can do it. For example, look in Freeimage C documentation: https://freeimage.sourceforge.io/documentation.html


Forum Jump:


Users browsing this thread: 1 Guest(s)