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

SetRGB32

Set one color register for this Viewport.

Declaration

Source position: agraphics.pas line 2116

procedure SetRGB32(

  Vp: PViewPort;

  N: LongWord;

  R: LongWord;

  G: LongWord;

  B: LongWord

);

Arguments

Vp

  

Viewport

N

  

The number of the color register to set.

R

  

Red level (32 bit left justified fraction)

G

  

green level (32 bit left justified fraction)

B

  

blue level (32 bit left justified fraction)

Description

If there is a ColorMap for this viewport, then the value will be stored in the ColorMap. The selected color register is changed to match your specs. If the color value is unused then nothing will happen.

Lower order bits of the palette specification will be discarded, depending on the color palette resolution of the target graphics device. Use $ffffffff for the full value, $7fffffff for 50%, etc. You can find out the palette range for your screen by querying the graphics data base.

See also

GetColorMap

  

Allocate and initialize Colormap

GetRGB32

  

Set a series of color registers for this Viewport.

SetRGB32CM

  

Set one color register for this ColorMap.

LoadRGB32

  

Set a series of color registers for this Viewport.


Documentation generated on: 2021-07-30