The function returns the RGB values of the required color from used color palette in the diagram or from assigned color palette.
Declaration
INT %HI_GetPalRGB(
INT in page,
INT in row,
INT in column
[,HOBJ in colorPalette]
)
Parameters
page
Page of the color palette.
row
Row on the page of the color palette.
column
Column on the page of the color palette.
colorPalette
Color palette or system color palette (value 0)
Description
The function returns the RGB value of the required color that is defined by the parameters of page (1 up to 10 in the color palette), row (1 up to 8 on given page in the color palette) and column (1 up to 16, "A" up to "P" or "a" up to "p" on given page in the color palette).
Note
The column can be defined either by number 1 up to 16 or by a single letter text "A" up to "P", or "a" up to "p". These forms of writing are equivalent, i.e. 1 is the same as "A" (or "a"). The function %MakeRGB allows to form the color from individual color components.
Príklad
INT _color
; obtaining color from used color palette in the diagram
_color := %HI_GetPalRGB(2,3,5)
; obtaining color from color palette CP1
_color := %HI_GetPalRGB(2,3,5,CP1\HBJ)
; obtaining color from system palette
_color := %HI_GetPalRGB(2,3,5,0)
0 komentárov