CutImageIntoTiles


Generates an array of small images by cutting the input image.

Syntax

C++
C#
Python
 
def CutImageIntoTiles(
	inImage: Image,
	/,
	*,
	inTileWidth: int = 1,
	inTileHeight: int | None = None,
	inHorizontalStep: int | None = None,
	inVerticalStep: int | None = None,
	inOverflowControl: OverflowControl = OverflowControl.KeepLast
)
-> outImageTiles: list[Image]

Parameters

Name Type Range Default Description
Input value inImage Image Image to be cut into tiles
Input value inTileWidth int 1 - 1 Demanded tile width.
Input value inTileHeight int | None 1 - None Demanded tile height; equals inTileWidth when set to Auto.
Input value inHorizontalStep int | None 1 - None Defines horizontal space between consecutive tiles; defaults to tile width. Can be used to produce overlapping tiles.
Input value inVerticalStep int | None 1 - None Defines vertical space between consecutive tiles; defaults to tile height. Can be used to produce overlapping tiles.
Input value inOverflowControl OverflowControl OverflowControl.KeepLast Define what to do when overflowing tiles are present.
Output value outImageTiles list[Image] Resulting image tiles

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.