Image8Root Initialize Method Cognex VisionPro 9.21 SR1

Initializes this IImage8RootBuffer. If scan0 and disposable are provided, it is initialized with the provided data. Otherwise, it is initialized with undefined data.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.21.1.1
Syntax

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

Parameters

width
Type: System Int32
The width of the data (in pixels)
height
Type: System Int32
The height of the data (in pixels)
scan0
Type: System IntPtr
A pointer to raw pixel data (optional)
stride
Type: System Int32
The stride of the image (in bytes)
disposable
Type: IObject
A pointer to an object that owns scan0 (optional)

Implements

IImage8RootBuffer Initialize(Int32, Int32, IntPtr, Int32, IObject)
Exceptions

ExceptionCondition
ImageExceptionwidth or height is less than 1; or stride is less than width.
ArgumentExceptionscan0 is NULL, but disposable is not.
See Also