Back to FabImage Library website
You are here: Start » Function Reference » Image Tiling » EnumerateImageTiles

EnumerateImageTiles
Header: | FIL.h |
---|---|
Namespace: | fil |
Enumerates tiles from image.
Syntax
C++
C#
bool fil::EnumerateImageTiles ( const fil::Image& inImage, const int inTileWidth, ftl::Optional<int> inTileHeight, const bool inOverflowControl, const fil::Image& outTile, const fil::Box& diagTilePosition )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inImage | const Image& | Image to be enumerated. | ||
![]() |
inTileWidth | const int | 1 - ![]() |
1 | Demanded tile width. |
![]() |
inTileHeight | Optional<int> | 1 - ![]() |
Demanded tile height; equals inTileWidth when set to Auto. | |
![]() |
inOverflowControl | const bool | Allow overflow. | ||
![]() |
outTile | const Image& | |||
![]() |
diagTilePosition | const Box& | Box indicating cut out tiles location and dimensions. |
Description
Cuts out a tile from inImage and serves them one by one. Tile dimensions cannot be changed during image traversal.
Examples
![]() |
![]() |
EnumerateImageTiles performed on the sample image with inOverflowControl = true.
See Also
- CutImageIntoTiles – Generates array of image tiles, which are cut from inImage.
- JoinImageTiles – Joins previously cut tiles into single image.
- JoinImageTiles – Joins previously cut tiles into single image.