we are using TestComplete to compare images from our browser based application.
The image capture and comparison process is working quite well with quite good performance.
However, due to the dynamic nature of our app, we have to mask out large areas of the image before the comparison (20-35% of app window).
We have written our own Fill() function, which uses the 'PictureObj.Pixels(X, Y)' property to fill the masked area.
Because our Fill() is script (C# script), it is incredibly slow. Our tests indicate that a typical image compare (which includes reading / writing to disk etc) takes about 60 seconds, 55 of which are required for the mask operation.
We have already written several .net dlls which are used by our test scripts, so we are happy to go down this path again if required.
Does any one have any guidance as to the best option(s) for us to replace the current C# script. Any help would be appreciated.
If it involves a .net dll, where can i get info on the image format/type used in TestComplete so that we can make sure the dll is compatible?
In addition to Aaron's reply, I recommend that you try optimizing your routine to reduce the amount of disk read/write operations, because the operations usually take long (processing the retrieved data in memory is much faster).