CogImage8Root GetRawPixelMemory Method Cognex VisionPro 9.5
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.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 69.0.0.0
Syntax

public virtual void GetRawPixelMemory(
	CogImageDataModeConstants dataMode,
	int x,
	int y,
	int width,
	int height,
	out ICogImage8PixelMemory pixelMemory
)

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

ExceptionCondition
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