Forum Discussion

jazeckel's avatar
jazeckel
Occasional Contributor
15 years ago

How to specify format for Regions.AddPicture?

Is there a way to specify what format to use (BMP, PNG, color depth, etc.) when calling Regions.AddPicture and passing in an onscreen object?



Also, is there a way to specify it when doing a Regions.Compare with an onscreen object?  I tried converting my BMP's that I had captured to PNG's to save disk space, but when I did that they would no longer match when using Regions.Compare.

1 Reply

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    Hi Jessica,





    > Is there a way to specify what format to use (BMP, PNG, color depth, etc.) when calling Regions.AddPicture and passing in an onscreen object?



    From "Regions.AddPicture" help topic:

    The image format is specified by TestComplete’s Images option. It can also be set at test run time using the Options.Images.SetDefaultPictureConfiguration method.



    Hope this will help...