CogOCVMaxFont RenderImage Method ( Int32 , CogTransform2DLinear, CogOCVMaxFontRenderParams)Cognex VisionPro
Create an image in which the supplied text is drawn 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 CogImage8Grey RenderImage(
	int[] srcText,
	CogTransform2DLinear selectedFromFont,
	CogOCVMaxFontRenderParams renderParams
)

Parameters

srcText
Type:  System Int32 
The text to be drawn. This array of integers is interpreted as a sequence of character keys and the corresponding text is interpreted as a single 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 rendering this text.

Return Value

Type: CogImage8Grey
A CogImage8Grey that contains the rendered text.
Exceptions

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