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

SetRGB32CM

Set one color register for this ColorMap.

Declaration

Source position: agraphics.pas line 2389

procedure SetRGB32CM(

  cm: pColorMap;

  n: LongWord;

  r: LongWord;

  g: LongWord;

  b: LongWord

);

Arguments

cm

  

Colormap

n

  

The number of the color register to set. Must not exceed the number of colors allocated for the colormap.

r

  

red level (32 bit unsigned left justified fraction)

g

  

green level (32 bit unsigned left justified fraction)

b

  

blue level (32 bit unsigned left justified fraction)

Description

Store the (r,g,b) triplet at index n of the ColorMap structure. This function can be used to set up a ColorMap before before linking it into a viewport.

See also

GetColorMap

  

Allocate and initialize Colormap

GetRGB32

  

Set a series of color registers for this Viewport.

SetRGB32

  

Set one color register for this Viewport.

LoadRGB32

  

Set a series of color registers for this Viewport.


Documentation generated on: 2021-07-30