home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!wotan.compaq.com!twisto.eng.hou.compaq.com!sword.eng.hou.compaq.com!mccreary
- From: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
- Subject: Re: Disp 24bpp on 8bpp system?
- Message-ID: <1993Jan11.151522.25964@twisto.eng.hou.compaq.com>
- Sender: news@twisto.eng.hou.compaq.com (Netnews Account)
- Organization: Compaq Computer Corp.
- References: <C0K4nM.14B@news.cso.uiuc.edu>
- Date: Mon, 11 Jan 1993 15:15:22 GMT
- Lines: 20
-
- In article <C0K4nM.14B@news.cso.uiuc.edu> jas37876@uxa.cso.uiuc.edu (John A. Slagel) writes:
- > Is there anyway to display a 24bpp DIB on a 256 color SVGA without
- > implementing the code for color quantization? I wrote some code to
- > convert 24bpp images into 8bpp DIBs, but it takes around 10 seconds
- > for a 512x512 DIB, and I just wonder if there is a better way.
- >
- > I did try using SetDIBitsToDevice, but the picture only uses the 20
- > system colors to draw the 24bpp DIB. The result is pretty nasty looking.
- >
-
- I doubt it. The driver will use the system colors to display by default.
- Now you could create a standard palette with a range of colors in it.
- That would work better than just using the system palette. Writing
- your own code is probably the only way to get a good image though.
-
-
- --
- Ed McCreary ,__o
- mccreary@sword.eng.hou.compaq.com _-\_<,
- "If it were not for laughter, there would be no Tao." (*)/'(*)
-