home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / misc / 3271 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.2 KB  |  37 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!caen!destroyer!news.iastate.edu!arakins
  3. From: arakins@iastate.edu (Brother Andrek of the Violet Orchid Brotherhood)
  4. Subject: Getting a Palette to a Bitmap
  5. Message-ID: <BxB6sq.7E6@news.iastate.edu>
  6. Sender: news@news.iastate.edu (USENET News System)
  7. Organization: Iowa State University, Ames, IA
  8. Date: Fri, 6 Nov 1992 19:14:47 GMT
  9. Lines: 26
  10.  
  11.  
  12.   I am using some bitmap manipulation routines that I got
  13. from ftp.uu.net. One of these routines is one called:
  14.  
  15.   DibFromBitmap()
  16.  
  17.   Which takes a handle to a device dependent bitmap and
  18. returns a handle to a device independent bitmap.
  19.  
  20.   One of the parameters to this function is a handle to
  21. the palette of the HBITMAP. My question is: how do I get
  22. this?
  23.   When I attempt to use the system palette, the bitmap
  24. is translated, but it loses all of its color (it 
  25. becomes black and white). Does anyone have an idea on
  26. what I am doing wrong?
  27.  
  28.   I am using the code that can be found on ftp.uu.net
  29. in vendors/microsoft/developers-network/gdi/3.zip, in
  30. the file dib.c. I am using Borland C++ version 3.0.
  31.  
  32.   Thank you...
  33.  
  34. -- Andrew Akins
  35.    Iowa State University
  36.    arakins@iastate.edu
  37.