Image16Grey Get16GreyPixelMemory Method Cognex VisionPro 9.22

Gets an object that can be used to directly access pixel memory.

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

public IImage16PixelMemory Get16GreyPixelMemory(
	ImageDataModeConstants dataMode,
	int x,
	int y,
	int width,
	int height
)

Parameters

dataMode
Type: Cognex.Vision ImageDataModeConstants
Specifies whether the pixel data are read, write, or read/write.
x
Type: System Int32
The x-coordinate of the portion of the image to get.
y
Type: System Int32
The y-coordinate of the portion of the image to get.
width
Type: System Int32
The width of the portion of the image to get. A value of 0 specifies the entire width of the image (x must also be 0).
height
Type: System Int32
The height of the portion of the image to get. A value of 0 specifies the entire height of the image (y must also be 0).

Return Value

Type: IImage16PixelMemory

An object that represents the pixel data.

Implements

IImage16GreyData Get16GreyPixelMemory(ImageDataModeConstants, Int32, Int32, Int32, Int32)
Exceptions

ExceptionCondition
ImageExceptionx, y, width, and height describe a region that is not entirely within this image.
See Also