You are here: Start » AVL.NET » AVL.TranslateRegion

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
inRegionAvlNet.RegionInput region.
inDeltaXintHorizontal shift.
inDeltaYintVertical shift.
inInverseboolNegates the delta values.
outRegionAvlNet.RegionOutput region.

Examples

TranslateRegion performed on the sample region with inDeltaX and inDeltaY both set to 50.

Errors

List of possible exceptions:

Error type Description
DomainError Input and output regions are not distinct in TranslateRegion.

Function Overrides

See also