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.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.1.0.0
Syntax
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
| Exception | Condition |
|---|---|
| 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