Back to FabImage Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » TrimPathToRectangle

TrimPathToRectangle


Header: FIL.h
Namespace: fil
Module: FoundationLite

Creates a path contained in a rectangle from another path.

Syntax

C++
C#
 
void fil::TrimPathToRectangle
(
	const fil::Path& inPath,
	const fil::Rectangle2D& inRectangle,
	fil::TrimPathMethod::Type inTrimPathMethod,
	fil::Path& outPath
)

Parameters

Name Type Default Description
Input value inPath const Path& Input path
Input value inRectangle const Rectangle2D&
Input value inTrimPathMethod TrimPathMethod::Type PointToPoint
Output value outPath Path& Output path

Errors

List of possible exceptions:

Error type Description
DomainError Unknown method for cropping a path in TrimPathToRectangle.