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 | |
|---|---|---|---|---|---|
![]() |
inImageSize | Size | Format of image for which tiles will be produced. | ||
![]() |
inTileWidth | int | 1 - ![]() |
32 | Demanded tile width. |
![]() |
inTileHeight | int | None | 1 - ![]() |
None | Demanded tile height; equals inTileWidth when set to Auto. |
![]() |
inHorizontalStep | int | None | 1 - ![]() |
None | Defines horizontal space between consecutive tiles; defaults to tile width. Can be used to produce overlapping tiles. |
![]() |
inVerticalStep | int | None | 1 - ![]() |
None | Defines vertical space between consecutive tiles; defaults to tile height. Can be used to produce overlapping tiles. |
![]() |
inOverflowControl | OverflowControl | OverflowControl.KeepLast | Define what to do when overflowing tiles are present. | |
![]() |
outTileBoxes | list[Box] | Array containing produced tiles. | ||
![]() |
outRowCount | int | Number of generated tiles rows. | ||
![]() |
outColumnCount | int | Number of generated tiles per row. |



