Article View: comp.windows.ms.programmer
Article #82DIB's & Palettes
From: Ian Perrigo
Date: Mon, 27 Jul 1992 19:58
Date: Mon, 27 Jul 1992 19:58
18 lines
1069 bytes
1069 bytes
Here's the scoop: I'm loading a 256 colour DIB, and I don't get the right colours displayed in my app (but Paint displays them correctly). Can I create a logical palette using the bmiColors[] array in the BITMAPINFO structure in the DIB file? Any example code would be much appreciated. When I move to a DIB that has > 256 colours, must I deal with this seperately? It appears that the bmiColors array is no longer used, and that the RGB values are in the bitmap array (three bytes per pixel). Specs: 486-50 ATI Graphics Ultra Windows 3.1 BorlandC++ 3.1 with OWL Thanks in advance, Ian.
Technical Details
Message-ID:
<1992Jul27.195844.27997@mprgate.mpr.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!uw-beaver!ubc-cs!mprgate.mpr.ca!mprgate.mpr.ca!perrigoShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!uw-beaver!ubc-cs!mprgate.mpr.ca!mprgate.mpr.ca!perrigo From: perrigo@mprgate.mpr.ca (Ian Perrigo) Newsgroups: comp.windows.ms.programmer Subject: DIB's & Palettes Keywords: DIB Palette Message-ID: <1992Jul27.195844.27997@mprgate.mpr.ca> Date: 27 Jul 92 19:58:44 GMT Sender: news@mprgate.mpr.ca Organization: MPR Teltech Ltd Lines: 18