Using "Transparent" in Regions.compare does not work
Hi,
I am using TC11.20 for Desktop testing. I read all the related topics previously posted for image comparison, but couldn't find answer, so posting question with my scenario.
I have script written to compare screenshots and I use Regions.Compare method to compare two images.
I have saved baseline image in Stores (as Regions), and image to compare with in some folder. I am using Transparent=true as I need to skip some parts of the image from comparision. I used MS paint to edit Baseline image and filled some areas with Transparent color, making sure top left pixel (0,0) has same color.
Both screenshots are exactly same except date and battery power at top, still comparision result shows lot of differences.
If I compare images without editing baseline with Transparent color, it only shows two difference.
Why comparison shows so many differences using Transparent parameter?
How exactly I can fill Transparent color for some areas of image?
Thanks for your help,
Samixa
Thanks for your response.
With the help of Test Complete support team figured out that I need to use high quality image format. I was using .jpg format. I created new images with ".png" format, now image comarison excludes areas with Transparent color and shows images are equal.