You are here: Start » AVL.NET » AVL.TranslateRegion(AvlNet.Region, int, int, bool, AvlNet.Region)
AVL.TranslateRegion(AvlNet.Region, int, int, bool, AvlNet.Region)
Translates a region by a given number of pixels along each axis.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void TranslateRegion( AvlNet.Region inRegion, int inDeltaX, int inDeltaY, bool inInverse, out AvlNet.Region outRegion )
Parameters
- inRegion
- Type: AvlNet.Region
Input region - inDeltaX
- Type: System.Int32
Horizontal shift - inDeltaY
- Type: System.Int32
Vertical shift - inInverse
- Type: System.Boolean
Negates the delta values - outRegion
- Type: AvlNet.Region
Output region
Examples
![]() |
![]() |
TranslateRegion performed on the sample region with inDeltaX and inDeltaY both set to 50.
Errors
| Error type | Description |
|---|---|
| DomainError | Input and output regions are not distinct in TranslateRegion. |


