imaqSetROIColor

NI Vision for LabWindows/CVI Function

imaqSetROIColor

Usage

int imaqSetROIColor(ROI* roi, const RGBValue* color);

Purpose

Sets the color of all the contours currently in a region of interest (ROI). All contours you add to the ROI become this color after you call this function. Use imaqSetContourColor() to change the color of individual contours within the ROI.

Parameters

Name

Type

Description

roi ROI* The ROI whose color the function sets.
color const RGBValue* The color to which the function sets the ROI. This parameter is required and cannot be NULL.

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().