Image8Grey Allocate Method Cognex VisionPro 9.24

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

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.24.0.0
Syntax

public void Allocate(
	int width,
	int height
)

Parameters

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

Implements

IImage Allocate(Int32, Int32)
Exceptions

ExceptionCondition
ImageExceptionThe image is already allocated to a different size.
ArgumentExceptionwidth or height is less than or equal to 0.
See Also