Hi,
Currently, I use a cDIB class to manage all color depth DIBs. But now I
would like to avoid selecting my hDIB into a DC, and process all through
manipulating data directly from/through lpBits (color data pointer). The
problem comes at time to load palette based bitmaps through LoadImage API.
Now, once I have hDIB, I select into a DC and extract palette using
GetDIBColorTable. My question is if it's possible to extract palette without
making use of a DC (is palette located inmediately before of global memory
DIB image data?). In case not possible, I guess I should create a temporary
DC, or, code my own LoadDIB function...
The main aim is avoid extra GDI objects. My application (game) loads
about 100 8-bpp DIBs, and I would like to work only with byte-arrays
(StrecthDIBits...).
Carles.