You are here: Start » AVL.NET » AVL.CreateCrossRegion(AvlNet.Box, int, int, AvlNet.Region)

AVL.CreateCrossRegion(AvlNet.Box, int, int, AvlNet.Region)

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void CreateCrossRegion(
	AvlNet.Box inCrossBoundingBox,
	int inFrameWidth,
	int inFrameHeight,
	out AvlNet.Region outRegion
)

Parameters

inCrossBoundingBox
Type: AvlNet.Box
inFrameWidth
Type: System.Int32
inFrameHeight
Type: System.Int32
outRegion
Type: AvlNet.Region

Description

The operation creates a region in a shape of a one-pixel-wide cross. Cross is described by its width, height and coordinates of upper-left corner of its bounding box.

The inFrameWidth and inFrameHeight parameters most often should be set equal to the dimensions of the image this region will be used with. If the input cross exceeds these dimensions, the output region will be cropped.

Examples

CreateCrossRegion run with inCrossBoundingBox parameters: X = 50, Y = 100, Width = 200, inCrossHeight = 100.

Errors

Error type Description
DomainError Output region too big in CreateCrossRegion.

See also