Offset Area

The Offset area block offsets, or translates, an area into a new area. This can be used to move an area from one position to another, or to change its size by adjusting its X, Y, Width, and Height values.

This block has no green input or output connectors in the header because it is not explicitly executed. It is used to perform a calculation on area values and deliver the result to other building blocks.

The Offset area block shows the following properties:

image-20251222-153834.png

Note: The screenshot on this page uses the Elegance Design, introduced in 2025.3. If you are using an earlier version, your layout may look different.

Quick-start

  1. Drag Offset area onto the canvas.

  2. Connect the block in the flow and specify Area to offset, Offset value, and Offset method.

  3. Run the flow when it’s ready.

Building block parameters

Parameters
  • Block header: Shows the current name of the Offset area block. You can rename it by double-clicking the header and typing a new title.

  • Area to offset: Specifies the original area in X, Y, Width, Height coordinates, starting with the upper-leftmost pixel. The top-left corner of the screen is position 0, 0. You can expand the field to work with the area’s position and size separately.

  • Offset value: Specifies the offset to apply to the original area, also in X, Y, Width, Height coordinates, starting with the upper-leftmost pixel. The top-left corner of the screen is position 0, 0. You can expand the field to work with the area’s position and size separately.

  • Offset method: Selects the method used during the offset operation. The available methods are Add and Multiply. For example, adding 10,20,30,40 to an area 100,100,500,500 results in 110,120,530,540.

  • Result area: Provides the resulting area from the offset operation in X, Y, Width, Height coordinates, starting with the upper-leftmost pixel. The top-left corner of the screen is position 0, 0.

Resources

Topic

Description

Flows FAQ

Common questions about creating, running, and managing flows in Leapwork.

Flows Troubleshooting

Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork.