Converts a single named color into an RGB value.
Restriction: This routine is supported for native COBOL only.
Syntax:
call "CBL_SCR_NAME_TO_RGB" using color-name
RGB-values
returning status-code
Parameters
-
color-name
- Call prototype (see
Key): cblt-x2-compx
- Picture: pic x(2) comp-x.
-
RGB-values
- Group predefined as
cblt-generic-attr-rgb-values containing:
01 cblt-generic-attr-rgb-values typedef.
03 cblte-garv-red-value cblt-x2-compx. *> pic x(2) comp-x.
03 cblte-garv-green-value cblt-x2-compx. *> pic x(2) comp-x.
03 cblte-garv-blue-value cblt-x2-compx. *> pic x(2) comp-x.
03 cblte-garv-filler cblt-x1-compx occurs 2. *> pic x(2).
-
status-code
- See
Library Routines - Key.
On Entry:
color-name-len
|
The number of characters in the name.
|
color-name-buf
|
The color name to be converted.
|
On Exit:
RGB-values
|
The RGB value to which the named color is converted.
|
filler
|
Unused.
|