You are here: Start » AVL.NET » Function Reference » Region » Region Basics » AVL.CreateGridRegion

AVL.CreateGridRegion

Creates a grid-shaped region with given parameters.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CreateGridRegion
(
	AvlNet.Box inGridBoundingBox,
	int inHorizontalStep,
	int inVerticalStep,
	int inFrameWidth,
	int inFrameHeight,
	AvlNet.Region outRegion
)

Parameters

Name Type Range Default Description
inGridBoundingBoxAvlNet.Box
inHorizontalStepint<1, INF>Horizontal distance between vertical grid lines.
inVerticalStepint<1, INF>Vertical distance between horizontal grid lines.
inFrameWidthint<0, 65535>Width of the created region's frame.
inFrameHeightint<0, 65535>Height of the created region's frame.
outRegionAvlNet.RegionOutput region.

Description

The operation creates a region in a shape of a one-pixel-wide grid. Grid is described by its width, height, distances between its lines and coordinates of its upper-left corner.

The inFrameWidth and inFrameHeight parameters most often should be set equal to the dimensions of the image this region will be used with.

Examples

CreateGridRegion run with inGridBoundingBox parameters: X = 0, Y = 0, inGridWidth = 300, inGridHeight = 300 and with inHorizontalStep = 60, inVerticalStep = 60

See also