Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

%HI_GetPalRGB function


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
languageesl
themeConfluence
INT %HI_GetPalRGB(
   INT in page, 
   INT in row, 
   INT in column
 [,HOBJ in colorPalette]
 )


Parameters


pagePage of the color palette.
rowRow on the page of the color palette.
columnColumn on the page of the color palette.
colorPalettefarebná paleta alebo systémová farebná paleta (hodnota 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

record

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 


Blok kódu
languageesl
themeRDark
 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)



Info
titleRelated pages:

A
Function arguments - types