Initializes this IImage16RootBuffer. If scan0 and disposable are provided, it is initialized with the provided data. Otherwise, it is initialized with undefined data.
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.22.2.0
Syntax
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
| Exception | Condition |
|---|---|
| ImageException | width or height is less than 1; or the absolute value of stride is less than width. |
| ArgumentException | scan0 is NULL, but disposable is not. |
See Also