Initializes this IImage8RootBuffer. 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.10.0.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 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
| Exception | Condition |
|---|---|
| ImageException | width or height is less than 1; or stride is less than width. |
| ArgumentException | scan0 is NULL, but disposable is not. |
See Also