You are here: Start » AVL.NET » AVL.TranslateRegion Method
AVL.TranslateRegion Method
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
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
Error type | Description |
---|---|
DomainError | Input and output regions are not distinct in TranslateRegion. |