Image8Grey GetPixel Method Cognex VisionPro 9.22 SR1

Pixel value at given location.

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

public byte GetPixel(
	int x,
	int y
)

Return Value

Type: Byte

The pixel value at the location specified by x and y.

Exceptions

ExceptionCondition
ImageExceptionAllocate has not yet been called.
ImageExceptionx or y is outside of this image (less than 0, or greater than or equal to Width or Height).
See Also