Back to FabImage Library website

You are here: Start » Function Reference » Region » Region Features » RegionArea

RegionArea


Header: FIL.h
Namespace: fil
Module: FoundationLite

Computes the number of pixels contained in a region.

Syntax

C++
C#
 
void fil::RegionArea
(
	const fil::Region& inRegion,
	int& outArea
)

Parameters

Name Type Default Description
Input value inRegion const Region& Input region
Output value outArea int&

Examples

Area of the sample region equals to 5567.

Errors

List of possible exceptions:

Error type Description
DomainError The area of the region exceeds the capacity of the integer type in RegionArea.

See Also