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 |
| inRegion | AvlNet.Region | | | Input region. |
| inDeltaX | int | | | Horizontal shift. |
| inDeltaY | int | | | Vertical shift. |
| inInverse | bool | | | Negates the delta values. |
| inFrameWidth | int? | <0, INF> | | Output region frame width. Default value: atl::NIL, or null. |
| inFrameHeight | int? | <0, INF> | | Output region frame height. Default value: atl::NIL, or null. |
| 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