CreateImageTiles_AsBoxes


Generates an array of boxes covering the area of an image.

Syntax

C++
C#
Python
 
def CreateImageTiles_AsBoxes(
	inImageSize: Size,
	/,
	*,
	inTileWidth: int = 32,
	inTileHeight: int | None = None,
	inHorizontalStep: int | None = None,
	inVerticalStep: int | None = None,
	inOverflowControl: OverflowControl = OverflowControl.KeepLast
)
-> (
	outTileBoxes: list[Box],
	outRowCount: int,
	outColumnCount: int
)

Parameters

Name Type Range Default Description
Input value inImageSize Size Format of image for which tiles will be produced.
Input value inTileWidth int 1 - 32 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 outTileBoxes list[Box] Array containing produced tiles.
Output value outRowCount int Number of generated tiles rows.
Output value outColumnCount int Number of generated tiles per row.