You are here: Start » AVL.NET » AVL.TranslateRegion
Translates a region by a given number of pixels along each axis.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void TranslateRegion ( AvlNet.Region inRegion, int inDeltaX, int inDeltaY, bool inInverse, AvlNet.Region outRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inRegion | AvlNet.Region | Input region. | |||
inDeltaX | int | Horizontal shift. | |||
inDeltaY | int | Vertical shift. | |||
inInverse | bool | Negates the delta values. | |||
outRegion | AvlNet.Region | Output region. |
Examples
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Input and output regions are not distinct in TranslateRegion. |