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

AVL.CreateRectangleRegion

Creates a region corresponding to a given rectangle.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CreateRectangleRegion
(
	AvlNet.Rectangle2D inRectangle,
	int inFrameWidth,
	int inFrameHeight,
	AvlNet.Region outRegion
)

Parameters

Name Type Range Default Description
inRectangleAvlNet.Rectangle2D
inFrameWidthint<0, 65535>Width of the created region's frame (not to be confused with the width of the rectangle!).
inFrameHeightint<0, 65535>Height of the created region's frame (not to be confused with the height of the rectangle!).
outRegionAvlNet.RegionOutput region.

Description

The operation creates a region containing pixels lying inside the specified rectangle.

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 rectangle exceeds these dimensions, the output region will be cropped.

Examples

Function Overrides

See also