Gets an object that can be used to directly access the raw pixel data. The caller MUST call Dispose on this object when finished with it.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 87.1.0.0
Syntax
Parameters
- dataMode
- Type: Cognex.VisionPro CogImageDataModeConstants
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 image to get.
- height
- Type: System Int32
The height of the image to get.
- pixelMemory
- Type: Cognex.VisionPro ICogImage8PixelMemory
An object that represents the pixel data.
Implements
ICogImage8Root GetRawPixelMemory(CogImageDataModeConstants, Int32, Int32, Int32, Int32, ICogImage8PixelMemory )Exceptions
| Exception | Condition |
|---|---|
| NullReferenceException | pixelMemory is NULL. (C++ only) |
Remarks
Gets an object that can be used to directly access the raw pixel data.
Note: This method is intended for Cognex use only. To access the pixel data directly, use CogImage8Grey.Get8GreyPixelMemory(CogImageDataModeConstants, Int32, Int32, Int32, Int32) instead.
See Also