Image16Root Initialize Method Cognex VisionPro 9.24

Initializes this IImage16RootBuffer. 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.24.0.0
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 number of pixels between rows. Can be positive or negative.
disposable
Type: IObject
A pointer to an object that owns scan0 (optional)

Implements

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

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