Porovnávané verzie

Kľúč

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

%HI_RemapColorPal function


Function

The function remaps farebnú paletu v HI na inú paletu. Zmena sa uplatní v novo otvorených oknách. V otvorených oknách sú ponechané farby z pôvodnej palety, až kým ich okná nebudú chcieť zmeniť. Napríklad: zmena farby spôsobená zmenou hodnoty objektu D2000. Funkcia nepracuje rekurzívne, t.j. ak sa premapuje Paleta1 na Paletu2 a Paleta2 na Paletu3, farby požadované z Palety1 budú z Palety2, t.j. nie z Palety3the color palette in HI to other palette. The change will be used in newly opened windows. In open windows, there are colors from the former palette until the windows want to change them. For instance, a change of color caused by a change of a value of D2000 object. The function does not work recursively, i.e. if Palette1 is remapped to Palette2 and Palette2 to Palette3, the colors required from Palette1 will be from Palette2, not from Palette3. 

Declaration


Blok kódu
languagecpp
themeConfluence
%HI_RemapColorPal(
   HOBJ in colorPalette1,
   HOBJ in toColorPalette2
 )


Parameters


colorPalette1 Farebná paleta, ktorá bude premapovaná The color palette that will be remapped.
toColorPalette2 Farebná paleta, na ktorú bude premapovaná The color palette to which other palette will be remapped.


Note 1

Remapping is cancelled if, colorPalette1 = toColorPalette2


Note 2

Systémová paleta je dostupná ako The system palette is available as  HOBJ(0)