Supported Browsers Home   
MGL_getPaletteEntry Previous   
MGL_getPaletteSnowLevel Next   
External Functions Up   

MGL_getPaletteSize

Returns the number of entries in the entire palette.

Declaration

int MGLAPI MGL_getPaletteSize(
    MGLDC *dc)

Prototype In

mgraph.h

Parameters

dc

Device context of interest

 

Return Value

Number of entries in entire palette.

Description

This function returns the number of entries in the entire palette. You should use this function to determine the size of the entire palette, since the palette is still available in HiColor and TrueColor video modes. For RGB modes the palette is implemented in software rather than hardware, and is used for translating color index values to RGB color values, such as when displaying color index bitmaps in RGB modes.

See Also

MGL_getPalette

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