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

SetRGB32CM

Set one color register for this ColorMap.

Declaration

Source position: agraphics.pas line 2464

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