GetPaletteData

Returns the current hardware color palette.

Declaration

void NAPI GA_driverFuncs::GetPaletteData(
GA_palette *pal,
N_int32 num,
N_int32 index)

Prototype In

snap/graphics.h

Parameters

pal | Place to return the palette data
num | Number of palette entries to read
index | Index of first entry to read

Description

This function reads the hardware color palette information from the hardware, and is only valid in 8-bpp and lower color index modes. Color palette information is returns from this function in an array of GA_palette structures. Each value in the GA_palette structure is 8-bits wide, with a range of 0 to 255. Note that this is different to the standard VGA palette programming routines, which normally take 6-bit wide values. Internally the driver will convert the 8-bit palette values to 6-bits if this is what the underlying hardware supports.

See Also

SetPaletteData, SetGammaCorrectData, GetGammaCorrectData, GetPaletteDataExt, SetPaletteDataExt, SetGammaCorrectDataExt, GetGammaCorrectDataExt

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com