Offset Area

The Offset area building is used to offset or “translate” an area to another area — for instance, moving it from one position to another, or changing its size.

The Offset area block shows the following properties:

Offset area building block, expanded to show all properties

The Block Header (“Offset area”)

There are no green input or output connectors in the header, because this building block is never explicitly executed. Rather, it is used to perform a calculation on area values and deliver the result to other building blocks.

The title of the block (“Offset area”) can be changed by double-clicking on it and typing in a new title.

Area to offset

The area to offset in X, Y, Width, Height coordinates, starting with the upper-leftmost pixel. The top-left corner of the screen is position 0, 0.

Click the expander button to work with the area’s position and size separately.

Offset value

The area to offset the original area with in X, Y, Width, Height coordinates, starting with the upper-leftmost pixel. The top-left corner of the screen is position 0, 0.

Click the expander button to work with the area’s position and size separately.

Offset method

The method to use during offset (add or multiply).

For instance, adding 10,20,30,40 to an area 100,100,500,500 will result in an area 110,120,530,540.

Result area

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.

Examples of usage:

Author: Claus Topholt, June 6, 2016.