Ask a Question

How to specify format for Regions.AddPicture?

jazeckel
Occasional Contributor

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 1
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...
Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
cancel
Showing results for 
Search instead for 
Did you mean: