Unit 'agraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

GetRGB4

Inquire value of entry in ColorMap.

Declaration

Source position: agraphics.pas line 2328

function GetRGB4(

  colorMap: pColorMap;

  entry: LongInt

):LongWord;

Arguments

colorMap

  

A pointer to ColorMap structure

entry

  

Index into colormap

Function result

Returns -1 if no valid entry return Word RGB value 4 bits per run right justified

Description

Read and format a value from the ColorMap.

Errors

Intuition's DisplayBeep() changes color 0. Reading Color 0 during a DisplayBeep() will lead to incorrect results.

See also

SetRGB4

  

Set one color register for this viewport.

LoadRGB4

  

Load RGB color values from table.

GetColorMap

  

Allocate and initialize Colormap

FreeColorMap

  

Free the ColorMap structure and return memory to free memory pool.


Documentation generated on: 2021-07-30