CogOCVMaxPattern RenderImage Method Cognex VisionPro 9.8 SR1
Creates an image that contains a graphical rendering of the entire arrangement.

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

public CogImage8Grey RenderImage(
	CogTransform2DLinear pPose,
	byte foregroundGrey,
	byte backgroundGrey
)

Parameters

pPose
Type: Cognex.VisionPro CogTransform2DLinear
A CogTransform2DLinear that defines the mapping from arrangement space to selected space.
foregroundGrey
Type: System Byte
The nominal greyscale value of the text.
backgroundGrey
Type: System Byte
The nominal greyscale value of everything but the text.

Return Value

Type: CogImage8Grey
An image that contains a graphical rendering of the current arrangement. This image is sized to contain the entire rendering.
Exceptions

ExceptionCondition
ObjectDisposedExceptionIf this CogOCVMaxPattern object has already been disposed.
See Also