The capture mode allows you to take pictures of the controls present on your SUT and save them for later usage within the designer and your source code.
To select an image you will need to define the rectangle of the image to take. To do so you simply need to draw a rectangle using your mouse. You can draw the rectangle from whichever side you wish. Once you are done drawing simply release the mouse button.
How to draw a rectangle for your control
Once you are done you will see the image taken in the preview section.
Once you have selected the rectangle you will notice that hotspot indicator (
) is located in the middle of the rectangle. The hotspot is used to determine where the interaction with the control should take place (e.g. clicking). You can change the position of the hotspot by simply dragging and dropping it in the desired location:
You can also move the hotspot outside of the image boundaries. Please be careful when selecting a hotspot
You can also modify the position of the hotspot within the preview area by following simply drag and dropping it:
You can modify the parameters of the image before saving it to you solution. The following parameters can be modified before the image is saved:
In order to save the image simply press the Save Image button
. You will be prompted with the Windows Explorer where you will be able to save your image to the desired location.
Save the image in a directory which is a part of the selected project. Otherwise the designer might have problems in locating the desired image.