TrimImageToRegion
Trims an image to the area of the specified region.
Syntax
C++
Python
def TrimImageToRegion( inImage: Image, inRegion: Region, outImage: Image, /, *, inBorderColor: Pixel = Pixel(0, 0, 0, 0) ) -> None
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inImage | Image | Input image | |
![]() |
inRegion | Region | Input region | |
![]() |
inBorderColor | Pixel | Pixel(0, 0, 0, 0) | Color used for locations outside the region |
![]() |
outImage | Image | Output image |


