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,
int? inFrameWidth,
int? inFrameHeight,
out AvlNet.Region outRegion
)
Parameters
|
Name |
Type |
Range |
Default |
Description |
![](../img/in.png) | inRegion | AvlNet.Region | | | Input region. |
![](../img/in.png) | inDeltaX | int | | | Horizontal shift. |
![](../img/in.png) | inDeltaY | int | | | Vertical shift. |
![](../img/in.png) | inInverse | bool | | | Negates the delta values. |
![](../img/in.png) | inFrameWidth | int? | <0, INF> | | Output region frame width. Default value: atl::NIL, or null. |
![](../img/in.png) | inFrameHeight | int? | <0, INF> | | Output region frame height. Default value: atl::NIL, or null. |
![](../img/out.png) | outRegion | 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. |
See also