Initialize the image with (undefined) pixel data of the given width and height. This method may not be called more than once.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax
Parameters
- width
- Type: System Int32
The width of the image in pixels.
- height
- Type: System Int32
The height of the image in pixels.
Exceptions
| Exception | Condition |
|---|---|
| CogImageAllocateSizeException | The image is already allocated to a different size. |
| ArgumentException | width or height <= 0. |
Remarks
Initialize the image of the given height and width with undefined pixel data. You can call Allocate(Int32, Int32) only once for an image. The allocated pixel space may not be resized.
See Also