ICogImage8RootBuffer Initialize Method Cognex VisionPro 9.22 SR1
Initializes the root with the buffered data. If the Disposable parameter is non-NULL, its Dispose method will be called when the memory is no longer needed.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 87.1.0.0
Syntax

void Initialize(
	int width,
	int height,
	IntPtr scan0,
	int stride,
	IDisposable disposable
)

Parameters

width
Type: System Int32

The width of the image buffer.

height
Type: System Int32

The height of the image buffer.

scan0
Type: System IntPtr

Address of the upper-left pixel.

stride
Type: System Int32

The number of pixels from one row to the next. This value can be positive or negative.

disposable
Type: System IDisposable

Exceptions

ExceptionCondition
ArgumentException

width or height <= 0.

ArgumentException

scan0 = 0.

ArgumentException

abs(stride) < width.

FAILException

CogImage8Root has already been called.

Remarks

Initializes the root with the buffered data. If disposable is not NULL, its Dispose method will be called when the memory is no longer needed.

See Also