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

AVL.SplitRegionIntoExactlyNCharacters Method

Splits the input region into a fixed-size array of regions corresponding to individual characters.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void SplitRegionIntoExactlyNCharacters(
	AvlNet.Region inRegion,
	int inCharacterCount,
	int inCharacterSpacing,
	float inProjectionSmooth,
	out AvlNet.Region[] outRegions
)

Parameters

Name Type Range Default Description
inRegionAvlNet.RegionRegion which contains characters.
inCharacterCountint<1, INF>Character count in provided region.
inCharacterSpacingint<0, INF>Spacing size between characters.
inProjectionSmoothfloat<0.0f, INF>1.0fProjection smoothing value used to remove noises from character region. Default value: 1.0f.
outRegionsAvlNet.RegionOutput array of regions containing separated characters.

Errors

Error type Description
DomainError Value of inCharacterCount is greater than inRegion frame width.
DomainError Value of inCharactersSpacing is greater than single character width.

See also