Back to FabImage Library website
You are here: Start » Function Reference » Region » Region Spatial Transforms » CropRegion
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Creates a region from a rectangular fragment of another one.
Applications: Can be used to obtain a part of a bigger region, but also to enforce specific region frame.
Syntax
C++
C#
void fil::CropRegion ( const fil::Region& inRegion, const fil::Box& inSelection, fil::Region& outRegion )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inRegion | const Region& | Input region | |
![]() |
inSelection | const Box& | Box defining the range of cropping | |
![]() |
outRegion | Region& | Output region |
Examples
![]() |
![]() |
CropRegion performed on the sample region with inSelection = Box(0,0,200,200).
See Also
- SetRegionFrame – Changes the width and the height of a region's frame (but does not rescale the content).
- UncropRegion – Inverse of CropRegion.