Share via


AnalysisRegion.GetRegionScans Method

Returns an array of rectangles that defines the area of the AnalysisRegion.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)

Syntax

'Declaration
Public Function GetRegionScans As Rectangle()
'Usage
Dim instance As AnalysisRegion 
Dim returnValue As Rectangle()

returnValue = instance.GetRegionScans()
public Rectangle[] GetRegionScans()
public:
array<Rectangle>^ GetRegionScans()
public function GetRegionScans() : Rectangle[]

Return Value

Type: array<System.Drawing.Rectangle[]
An array of rectangles that defines the area of the AnalysisRegion.

Remarks

The areas of the rectangles are in ink space coordinates.

The union of the returned rectangles represents the area of the AnalysisRegion.

Examples

This example shows two ways to get the area represented by the AnalysisRegion, theSecondAnalysisRegion.

' Get an approximation of the AnalysisRegion as an array of rectangles. 
Dim theArea As System.Drawing.Rectangle() = _
    theSecondAnalysisRegion.GetRegionScans()

' Get a Region object for the area of the AnalysisRegion. 
Dim theRegion As System.Drawing.Region = theSecondAnalysisRegion.ToRegion()
         // Get the area of the AnalysisRegion as an array of rectangles.
            System.Drawing.Rectangle[] theArea =
                theSecondAnalysisRegion.GetRegionScans();

            // Get the area of the AnalysisRegion as a region.
            System.Drawing.Region theRegion = theSecondAnalysisRegion.ToRegion();

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

AnalysisRegion Class

AnalysisRegion Members

Microsoft.Ink Namespace

AnalysisRegion.GetBounds

AnalysisRegion.ToRegion