Back to FabImage Library website

You are here: Start » Function Reference » Region Spatial Transforms » TrimRegionToShape

TrimRegionToShape


Header:FIL.h
Namespace:fil

Removes region elements lying beyond the specified shape.

Syntax

C++
C#
 
void fil::TrimRegionToShape
(
	const fil::Region& inRegion,
	const fil::Path& inShape,
	fil::Region& outRegion
)

Parameters

Name Type Default Description
inRegion const Region& Input region
inShape const Path&
outRegion Region& Output region

Errors

List of possible exceptions:

Error type Description
DomainError Path is not closed in TrimRegionToShape.