GetPixelValue Method

NI Vision for Visual Basic

GetPixelValue Method

Syntax

CWIMAQVision.GetPixelValue SourceImage, x, y, PixelValue

Return Type

Long

On success, this method returns 0. On failure, this function returns a negative number.

Purpose

Obsolete—Use GetPixel instead. Reads a pixel value from an image.

Remarks

Use this method with U8, I16, and SGL images.

Parameters

SourceImage As CWIMAQImage

The image used for this operation.

x As Long

The horizontal coordinate of the pixel to read.

y As Long

The vertical coordinate of the pixel to read.

PixelValue As Single

Returns the pixel value.

See Also

GetPixel