GetColorPixelValue Method

NI Vision for Visual Basic

GetColorPixelValue Method

Syntax

CWIMAQVision.GetColorPixelValue 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 the pixel value from a color image.

Remarks

This function operates on images of type RGB32.

Parameters

SourceImage As CWIMAQImage

The color image from which the color pixel information is read.

x As Long

The x-coordinate of the pixel.

y As Long

The y-coordinate of the pixel.

PixelValue As Long

Returns the RGB color pixel value.

See Also

GetPixel