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