imaqSetPixel

NI Vision for LabWindows/CVI Function

imaqSetPixel

Usage

int imaqSetPixel(Image* image, Point coord, PixelValue value);

Purpose

Sets the value of a pixel within an image.

Image Types Supported

IMAQ_IMAGE_U8, IMAQ_IMAGE_U16, IMAQ_IMAGE_I16, IMAQ_IMAGE_SGL, IMAQ_IMAGE_COMPLEX, IMAQ_IMAGE_RGB, IMAQ_IMAGE_HSL, IMAQ_IMAGE_RGB_U64

Parameters

Name

Type

Description

image Image* The image whose pixel value the function sets.
coord Point The coordinates of the pixel the function sets.
value PixelValue The value to which the function sets the image pixel.

Return Value

Type

Description

int On success, this function returns a non-zero value. On failure, this function returns 0. To get extended error information, call imaqGetLastError().