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

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.CorePlus (in Cognex.VisionPro.CorePlus.dll) Version: 65.1.0.0
Syntax

public virtual void Allocate(
	int DesiredWidth,
	int DesiredHeight
)

Parameters

DesiredWidth
Type: System Int32
The desired width of the image in pixels.
DesiredHeight
Type: System Int32
The desired height of the image in pixels.

Implements

ICogImage Allocate(Int32, Int32)
Exceptions

ExceptionCondition
CogImageAllocateSizeException If the image is already allocated to a different size.
See Also