GetPaletteDataExt

Returns the current hardware color palette using 16-bit per color channel

Declaration

void NAPI GA_driverFuncs::GetPaletteDataExt(
GA_paletteExt *pal,
N_int32 num,
N_int32 index)

Prototype In

snap/graphics.h

Parameters

pal | Place to return the extended 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_paletteExt structures. Each value in the GA_paletteExt structure is 16-bits wide, with a range of 0 to 65535. Note that this is different to the regular SetPaletteData function, which takes 8-bit wide values. Internally the driver will convert the 16-bit palette values to 8-bits if this is what the underlying hardware supports.

See Also

SetPaletteDataExt, SetGammaCorrectDataExt, GetGammaCorrectDataExt, GetPaletteData, SetPaletteData, SetGammaCorrectData, GetGammaCorrectData

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