Change area Version 1 (Java)
Action group: Base actions, subgroup: General
Description
Action returns rectangle area, that has been changed according to provided parameters. Width, length and coordinates of the upper left corner can be changed
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Rectangle Area | Rectangle Area | Rectangle Location | X: 796 Y: 504; 488*210 | Yes |
Left upper corner X-axis shift | Shift along the x-axis of the left upper corner of the rectangle area | Numeric | 234 | No |
Left upper corner Y-axis shift | Shift along the y-axis of the left upper corner of the rectangle area | Numeric | -50 | No |
Height change | Height change of the rectangle area | Numeric | 10 | No |
Width change | Width change of the rectangle area | Numeric | -98 | No |
Results | ||||
Changed rectangle area | Variable in which the coordinates,length and width of the changed rectangle area will be written | Rectangle Location |
Special conditions of use
If no value is entered in the optional parameter field, the coordinate value of the corresponding axis, height or width is saved to the result unchanged.
Example of use
Task
You need to retrieve individual elements from the image and save them to a folder.
Solution
Use the "Change area" and "Take screenshot" actions.
Implementation
- Create a variable with arbitrary area dimensions.
- Transfer the "Change area" action to the workspace.
- Set the parameters of the "Change area" action.
- In the "Rectangle area" field, add the created variable with the area dimensions.
- Enter the required values in the remaining fields.
- Move the "Take screenshot" action to the workspace.
- Set the parameters of the "Take screenshot" action.
- In the "Folder" field, add a previously created folder.
- Select an arbitrary file name and format for the screenshot.
- In the "Type" field, select the "Coordinates" option.
- In the "Arbitrary rectangular area" field, add the result of the "Change area" action.
- Click on the "Start" button in the top panel.
Result
The program robot worked successfully. The robot took a screenshot of the changed area parameters and saved the result to the folder.
Обзор
Инструменты контента