Forum Discussion
YuriPeshekhonov
Alumni
8 years agoHello,
Try using the Compare Method. So, the code will be like this:
Sub Test1
Dim Pict1, Pict2
Set Pict1 = Utils.Picture
Set Pict2 = Utils.Picture
' Loads the image from a file and posts it to the log
Call Pict1.LoadFromFile("D:\Data\my_image.png")
Call Pict2.LoadFromFile("D:\Data\my_image.png")
If Not Regions.Compare(Pict1, Pict2) Then
Log.Error("The compared images are not identical.")
End If
End Sub