DOSColorToRGB
int DOSColorToRGB (int labWindowsDOSColor);
Purpose
Translates the 16 standard color values from LabWindows for DOS to RGB values as shown in the following table. An RGB value is a 4-byte integer with the hexadecimal format 0x00RRGGBB. RR, GG, and BB are the respective red, green, and blue components of the color value.
LabWindows for DOS | LabWindows/CVI |
0 (black) | VAL_BLACK = 0x000000L |
1 (dark blue) | VAL_DK_BLUE = 0x000080L |
2 (dark green) | VAL_DK_GREEN = 0x008000L |
3 (dark cyan) | VAL_DK_CYAN = 0x008080L |
4 (dark red) | VAL_DK_RED = 0x800000L |
5 (dark magenta) | VAL_DK_MAGENTA = 0x800080L |
6 (brown) | VAL_DK_YELLOW = 0x808000L |
7 (gray) | VAL_LT_GRAY = 0xC0C0C0L |
8 (dark gray) | VAL_DK_GRAY = 0x808080L |
9 (blue) | VAL_BLUE = 0x0000FFL |
10 (green) | VAL_GREEN = 0x00FF00L |
11 (cyan) | VAL_CYAN = 0x00FFFFL |
12 (red) | VAL_RED = 0xFF0000L |
13 (magenta) | VAL_MAGENTA = 0xFF00FFL |
14 (yellow) | VAL_YELLOW = 0xFFFF00L |
15 (white) | VAL_WHITE = 0xFFFFFFL |
Parameters
Input | ||
Name | Type | Description |
labWindowsDOSColor | int | One of the 16 standard colors from LabWindows for DOS. |
Return Value
Name | Type | Description |
RGBValue | int | Value indicating the RGB value. |
Additional Information
Library: User Interface Library
Include file: userint.h
LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later