You are here: Start » AVL.NET » AVL.CreateImageTiles_AsRegions Method

AVL.CreateImageTiles_AsRegions Method

Generates array of Regions, which divide image in, potentially overlapping, tiles.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void CreateImageTiles_AsRegions(
	AvlNet.ImageFormat inImageFormat,
	int inTileWidth,
	int? inTileHeight,
	int? inHorizontalStep,
	int? inVerticalStep,
	bool inOverflowControl,
	out AvlNet.Region[] outTiles,
	out int outRowCount,
	out int outColumnCount
)

Parameters

Name Type Range Default Description
inImageFormatAvlNet.ImageFormatFormat of image for which tiles will be produced.
inTileWidthint<1, INF>1Demanded tile width. Default value: 1.
inTileHeightint?<1, INF>Demanded tile height; equals inTileWidth when set to Auto. Default value: atl::NIL, or null.
inHorizontalStepint?<1, INF>Defines horizontal space between consecutive tiles; defaults to tile width. Can be used to produce overlapping tiles. Default value: atl::NIL, or null.
inVerticalStepint?<1, INF>Defines vertical space between consecutive tiles; defaults to tile height. Can be used to produce overlapping tiles. Default value: atl::NIL, or null.
inOverflowControlboolFalseWhen set to true, overflowing tiles will be removed form outTiles array. Default value: False.
outTilesAvlNet.RegionArray containing produced tiles.
outRowCountintNumber of generated tiles rows.
outColumnCountintNumber of generated tiles per row.

Examples

CreateImageTiles_asRegions without and with vertical overlap.

See also