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
Input value inImage Image Input image
Input value inRegion Region Input region
Input value inBorderColor Pixel Pixel(0, 0, 0, 0) Color used for locations outside the region
Output value outImage Image Output image