ICogImage Allocate Method Cognex VisionPro 9.5
Initialize the image with (undefined) pixel data of the given width and height. This method may not be called more than once.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 69.0.0.0
Syntax

void Allocate(
	int width,
	int height
)
Exceptions

ExceptionCondition
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