home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / ms / programm / 7382 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  1.0 KB

  1. Path: 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
  2. From: perrigo@mprgate.mpr.ca (Ian Perrigo)
  3. Newsgroups: comp.windows.ms.programmer
  4. Subject: DIB's & Palettes
  5. Keywords: DIB Palette
  6. Message-ID: <1992Jul27.195844.27997@mprgate.mpr.ca>
  7. Date: 27 Jul 92 19:58:44 GMT
  8. Sender: news@mprgate.mpr.ca
  9. Organization: MPR Teltech Ltd
  10. Lines: 18
  11.  
  12.  
  13. Here's the scoop: I'm loading a 256 colour DIB, and I don't get the right
  14. colours displayed in my app (but Paint displays them correctly). Can I create
  15. a logical palette using the bmiColors[] array in the BITMAPINFO structure in
  16. the DIB file?
  17. Any example code would be much appreciated.
  18. When I move to a DIB that has > 256 colours, must I deal with this seperately?
  19. It appears that the bmiColors array is no longer used, and that the RGB values
  20. are in the bitmap array (three bytes per pixel). 
  21.  
  22. Specs:
  23. 486-50
  24. ATI Graphics Ultra
  25. Windows 3.1
  26. BorlandC++ 3.1 with OWL
  27.  
  28. Thanks in advance,
  29. Ian.
  30.