Loading [MathJax]/extensions/tex2jax.js
Back to FabImage Library website

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

CropPathToRectangle


Header:FIL.h
Namespace:fil

Creates a path contained in a rectangle from another path.

Syntax

C++
C#
 
void fil::CropPathToRectangle
(
	const fil::Path& inPath,
	const fil::Rectangle2D& inRectangle,
	fil::CropPathMethod::Type inCropPathMethod,
	fil::Path& outPath
)

Parameters

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

Errors

List of possible exceptions:

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