ConvertColor Function
- Updated2025-07-21
- 1 minute(s) read
ConvertColor Function
Syntax
Number ConvertColor(Number color)
Return Value
The color value converted to the opposite format.
Purpose
This function converts between the big-endian and little-endian color value formats. Color values are stored as four-byte integers expressed in one of two common formats: little-endian and big-endian. Windows and ActiveX use the little-endian format, while LabVIEW and LabWindows/CVI use the big-endian format. The little-endian format stores red, green, and blue color components in the form 0x00BBGGRR. The big-endian format stores the color components in the form 0x00RRGGBB.
Parameters
color as Number
A numeric color value.