Back to FabImage Library website

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

CropPath


Header:FIL.h
Namespace:fil

Creates a path contained in a box from another path.

Syntax

C++
C#
 
void fil::CropPath
(
	const fil::Path& inPath,
	const fil::Box& inBox,
	fil::CropPathMethod::Type inCropPathMethod,
	fil::Path& outPath
)

Parameters

Name Type Default Description
inPath const Path& Input path
inBox const Box&
inCropPathMethod CropPathMethod::Type PointToPoint
outPath Path& Output path

Examples

CropPath performed on the sample box and path.

Errors

List of possible exceptions:

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