How to retrieve coordinates of an image inside another one
Hi all,
I'm new with Test Complete, and I'm trying to undestand how to compare images within my desktop app using the RegionObj.Check method. I hope that you can help me. I'll attach an image just to better explain.
I've got this issue: the image contains itself another image, and, using for example Object Spy or the CheckPoint Image recording, I can retrieve only all the image, with all its background (the one that I've highlighted with red color) and I cannot retrieve the image that I want (the one that I've highlighted with green color).
I've got the Regions image that contains only the image highlighted with green color, so in this way I'm not able to do the image comparison.
I've found the Regions.CreateRegionInfo method that could be used as first parameter for the Check method to select a specific area within the image, using the ClientX-Y coordinates and Width and Height parameters; but I don't find how I can retrieve these coordinates for the image highlighted in green, so I don't understand which coordinates insert on it! (maybe if the coordinates could be relative within the red one it will be better).
I hope you can help me, it is rather urgent.
Thanks!
Simona
simonaferrara Is this still an issue for you? Here, I found the article that should answer your query: