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
inRegionAvlNet.RegionInput region.
inDeltaXintHorizontal shift.
inDeltaYintVertical shift.
inInverseboolNegates the delta values.
inFrameWidthint?<0, INF>Output region frame width. Default value: atl::NIL, or null.
inFrameHeightint?<0, INF>Output region frame height. Default value: atl::NIL, or null.
outRegionAvlNet.RegionOutput 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