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

AVL.CreateEllipseRegion

Creates an elliptic region of given bounding rectangle.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

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

Parameters

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

Description

The operation creates a region containing pixels lying inside an ellipse which is described by its bounding 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 ellipse exceeds these dimensions, the output region will be cropped.

Examples

CreateEllipseRegion run with a sample rectangle.

Function Overrides

See also