SetPixelValue Method

NI Vision for Visual Basic

SetPixelValue Method

Syntax

CWIMAQVision.SetPixelValue 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. Writes a pixel value to an image.

Remarks

This function is used with image types U8, I16, and SGL.

Parameters

DestImage As CWIMAQImage

The image to modify.

x As Long

The horizontal coordinate of the pixel to write.

y As Long

The vertical coordinate of the pixel to write.

PixelValue As Single

The pixel value to write.

See Also

SetPixel2