Color2RGB function
Prototype: |
function Color2RGB (const TColor : integer) : string; |
|
Description: |
Use Color2RGB function to convert color expression from TColor format to RGB. TColor form is Windows-only color specification, which code has format $7FFFFFFF. On the other hand, RGB format used by Field-Map is 11 spaces long string, its typical entry has form FFF,FFF,FFF |
|
Syntax: |
variable := Color2RGB (TColor); |
|
Part |
Description |
|
variable |
Variable declared as string |
|
TColor |
Variable containing TColor type expression defining the color |
|
Return value: |
String defining RGB color format |
|
Example:
Begin
Storeys['RGB'] := Color2RGB(clBtnFace);
ShowMessage(format ('RGB of the clBtnFace color is %s.',[Color2RGB(clBtnFace)]));
end.
See also:
RGB; Color2RGB; List of colors
© 2024 IFER-Monitoring and Mapping Solutions