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

GetRGB4

Inquire value of entry in ColorMap.

Declaration

Source position: agraphics.pas line 2390

function GetRGB4(

  ColorMap: PColorMap;

  Entry: LongWord

):LongInt;

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