home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!caen!destroyer!news.iastate.edu!arakins
- From: arakins@iastate.edu (Brother Andrek of the Violet Orchid Brotherhood)
- Subject: Getting a Palette to a Bitmap
- Message-ID: <BxB6sq.7E6@news.iastate.edu>
- Sender: news@news.iastate.edu (USENET News System)
- Organization: Iowa State University, Ames, IA
- Date: Fri, 6 Nov 1992 19:14:47 GMT
- Lines: 26
-
-
- I am using some bitmap manipulation routines that I got
- from ftp.uu.net. One of these routines is one called:
-
- DibFromBitmap()
-
- Which takes a handle to a device dependent bitmap and
- returns a handle to a device independent bitmap.
-
- One of the parameters to this function is a handle to
- the palette of the HBITMAP. My question is: how do I get
- this?
- When I attempt to use the system palette, the bitmap
- is translated, but it loses all of its color (it
- becomes black and white). Does anyone have an idea on
- what I am doing wrong?
-
- I am using the code that can be found on ftp.uu.net
- in vendors/microsoft/developers-network/gdi/3.zip, in
- the file dib.c. I am using Borland C++ version 3.0.
-
- Thank you...
-
- -- Andrew Akins
- Iowa State University
- arakins@iastate.edu
-