CogOCVMaxFont GetCharacterMarkBounds Method ( String , CogTransform2DLinear, CogOCVMaxFontRenderParams)Cognex VisionPro
Create a System::Array of CogRectangleAffine that correspond to the individual selected space bounds of each character mark in the supplied text. These mark bounds are determined using this font and the supplied parameters.

Namespace: Cognex.VisionPro.OCVMax
Assembly: Cognex.VisionPro.OCVMax (in Cognex.VisionPro.OCVMax.dll) Version: 65.1.0.0
Syntax

public CogRectangleAffine[] GetCharacterMarkBounds(
	string[] srcText,
	CogTransform2DLinear selectedFromFont,
	CogOCVMaxFontRenderParams renderParams
)

Parameters

srcText
Type:  System String 
The text to be evaluated. Each array element is interpreted as a separate line within a single paragraph.
selectedFromFont
Type: Cognex.VisionPro CogTransform2DLinear
A linear mapping from the imported font description to the selected space. Typically used to specify scaling.
renderParams
Type: Cognex.VisionPro.OCVMax CogOCVMaxFontRenderParams
The CogOCVMaxFontRenderParams to use in evaluating this text.

Return Value

Type:  CogRectangleAffine 
A System::Array of CogRectangleAffine, each of which corresponds to the individual selected space mark bounds of a character in the supplied text.
Exceptions

ExceptionCondition
InvalidOperationExceptionIf a font has not yet been imported, or if an internal error occurs.
ArgumentOutOfRangeExceptionIf the srcText argument does not describe at least one character.
ArgumentNullExceptionIf any of the arguments are NULL.
ObjectDisposedExceptionIf this CogOCVMaxFont object has already been disposed.
See Also