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

LoadRGB32

Set a series of color registers for this Viewport.

Declaration

Source position: agraphics.pas line 2345

procedure LoadRGB32(

  vp: pViewPort;

  const table: PULONG

);

Arguments

vp

  

viewport

table

  

A pointer to a series of records which describe which colors to modify.

Description

The selected color registers are changed to match your specs. LoadRGB32() is faster than SetRGB32(), even for one color.

Passing a nil "table" is ignored. The format of the table passed to this function is a series of records, each with the following format:

1 Word with the number of colors to load 1 Word with the first color to be loaded. 3 longwords representing a left justified 32 bit rgb triplet. The list is terminated by a count value of 0.

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

See also

LoadRGB4

  

Load RGB color values from table.

GetColorMap

  

Allocate and initialize Colormap

GetRGB32

  

Set a series of color registers for this Viewport.

SetRGB32CM

  

Set one color register for this ColorMap.


Documentation generated on: 2021-07-30