Previous: 4.51.2.4.55. ogSetPixelRGBA() To the Table of Contents Next: 4.51.2.4.57. ogSetRGBPalette()
4.51.2.4.55. ogSetPixelRGBA() Table of Contents 4.51.2.4.57. ogSetRGBPalette()

- 4.51.2.4.56. -
Table of Contents
4. Standard Units
4.51. ObjGfx40 - ObjectGraphics 4.0 Unit
4.51.2. ObjGfx40 Unit Object Types
4.51.2.4. ogSurface object
4.51.2.4.56. ogSetRGBAPalette()


4.51.2.4.56. ogSetRGBAPalette()

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

Sets an entry in the palette.

Declaration:
  procedure ogSetRGBAPalette(colour, red, green, blue, alpha:uInt8); virtual;
Remarks:

Colour defines the palette entry to be set, while red, green, blue, and alpha define the component colours of the palette entry.

The red, green, blue, and alpha values are with a range of 0..255, where 0 is minimum and 255 is maximum.

Restrictions:

Palettes only apply to 8BPP surfaces.

The alpha level will be used when copying to a higher-bitdepth surface which has blending enabled.

See also:


Previous: 4.51.2.4.55. ogSetPixelRGBA() To the Table of Contents Next: 4.51.2.4.57. ogSetRGBPalette()
4.51.2.4.55. ogSetPixelRGBA() Table of Contents 4.51.2.4.57. ogSetRGBPalette()

- 4.51.2.4.56. -