Porovnávané verzie
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
%HI_GetPalRGB function
The function returns the RGB value of given color z použitej farebnej palety v schéme alebo zo zadanej farebnej palety.values of the required color from used color palette in the diagram or from assigned color palette.
Declaration
Blok kódu | ||||
---|---|---|---|---|
| ||||
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 | farebná paleta alebo systémová farebná paleta (hodnota Color palette or system color palette (value 0) |
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).
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
recordwriting 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
Blok kódu | ||||
---|---|---|---|---|
| ||||
INT _color ; získanieobtaining color farbyfrom zused použitejcolor farebnejpalette paletyin vthe schémediagram _color := %HI_GetPalRGB(2,3,5) ; získanieobtaining farbycolor zfrom farebnejcolor paletypalette CP1 _color := %HI_GetPalRGB(2,3,5,CP1\HBJ) ; získanieobtaining farbycolor zofrom systémovejsystem paletypalette _color := %HI_GetPalRGB(2,3,5,0) |