Forum Discussion

savitriVG's avatar
savitriVG
New Contributor
14 years ago

How to scale image before comparision.

I am using stores for image comparision.



As I have to test my application on different monitors with different sizes.



Image comparision fails due to size variation in the base image to the captured image.



Can I rescale the captured image before comparision in test complete?

1 Reply

  • Hello,



    I'd actually recommend creating individual checkpoints for different image sizes, because the scaling artifacts can affect image comparison results.



    If you're sure that you want to use a single baseline image, you can resize it at run time using the Picture.Stretch method and then use the resulting image in the checkpoint. Also, you'll probably need to use the pixel tolerance and color tolerance parameters to ignore the scaling artifacts. See How Image Comparison Works and Factors Affecting Image Comparison for details.