home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / mswindo / programm / misc / 4546 < prev    next >
Encoding:
Internet Message Format  |  1993-01-02  |  1.5 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!engr.uark.edu!mbox.ualr.edu!acs.harding.edu!PACHECO
  2. Newsgroups: comp.os.ms-windows.programmer.misc
  3. Subject: Displaying 256-Colors DIB Help Needed
  4. Message-ID: <1993Jan2.095806.823@ualr.edu>
  5. From: pacheco@acs.harding.edu
  6. Date: 2 Jan 93 09:58:05 -0500
  7. Reply-To: pacheco@acs.harding.edu
  8. Organization: Harding University
  9. Nntp-Posting-Host: acs.harding.edu
  10. Lines: 24
  11.  
  12. If anyone can help with this problem I would be very appreciative.
  13.  
  14. I have created a 256 color bitmap in my resource file.  I am trying to
  15. display the bitmap on the screen.  I am using the GetDIBits function
  16. with the wUsage parameter set to DIB_RGB_COLORS to retrieve the color
  17. information for the bitmap in order to create a logical palette (is this
  18. the correct procedure ... ?).  However, even though the resulting
  19. bmiColors[] array contains 256 elements, all of the entries have RGB
  20. values of (0,0,0) except for the 20 entries reserved by the system.
  21.  
  22. I have loaded my .EXE with a resource editor and viewed the bitmap to
  23. confirm that it is 256 color and indeed it is.
  24.  
  25. Any help?  This is the first time I have worked with 256 color bitmaps
  26. and I would appreciate any information anyone has to offer.
  27.  
  28. Thanks in advance ...
  29.  
  30. Ron
  31.  
  32. ------------------------------------------------------------------------
  33.  Ron Pacheco \pa-chek'-oh\  |  HARDING UNIVERSITY     Searcy, Arkansas
  34.  pacheco@harding.edu    ;)  |  Dept. of Mathematics & Computer Science
  35. ------------------------------------------------------------------------
  36.