SetColorPixelValue Method

NI Vision for Visual Basic

SetColorPixelValue Method

Syntax

CWIMAQVision.SetColorPixelValue DestImage, x, y, PixelValue

Return Type

Long

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

Purpose

Obsolete—Use SetPixel2 instead. Changes the pixel value in a color image.

Remarks

Use this method with RGB32 images.

Parameters

DestImage As CWIMAQImage

The color image where the new color pixel value is written.

x As Long

The x-coordinate of the pixel.

y As Long

The y-coordinate of the pixel.

PixelValue As Long

The new RGB color pixel value.

See Also

SetPixel2