Forum Discussion
rminnich
13 years agoContributor
Looking through the help, you could probably do it within TestComplete. It may be very manual.
Create a new picture object by loading a blank image that is large enough to contain both your rectangles that you want to splice togather.
It would be something like
Set p = utils.Picture.LoadFromFile("my large blank image")
Next, let's assume that you have your images for your web page and application rectangles already loaded into pictures called w and a respectively.
Each picture has a Pixels property.
You should be able to copy the pixels from the first of your images (ie, picture w) into the pixels in the first half of p.
You should be able to copy the pixels from the secondof your images (ie, picture a) into the pixels in the second half of p.
After completing the copying, save out the contents of p to an image or post it to the log.
Create a new picture object by loading a blank image that is large enough to contain both your rectangles that you want to splice togather.
It would be something like
Set p = utils.Picture.LoadFromFile("my large blank image")
Next, let's assume that you have your images for your web page and application rectangles already loaded into pictures called w and a respectively.
Each picture has a Pixels property.
You should be able to copy the pixels from the first of your images (ie, picture w) into the pixels in the first half of p.
You should be able to copy the pixels from the secondof your images (ie, picture a) into the pixels in the second half of p.
After completing the copying, save out the contents of p to an image or post it to the log.
Related Content
- 10 years ago
- 10 years ago
- 9 years ago