home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4832 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.5 KB  |  32 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. 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
  3. From: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
  4. Subject: Re: Disp 24bpp on 8bpp system?
  5. Message-ID: <1993Jan11.151522.25964@twisto.eng.hou.compaq.com>
  6. Sender: news@twisto.eng.hou.compaq.com (Netnews Account)
  7. Organization: Compaq Computer Corp.
  8. References: <C0K4nM.14B@news.cso.uiuc.edu>
  9. Date: Mon, 11 Jan 1993 15:15:22 GMT
  10. Lines: 20
  11.  
  12. In article <C0K4nM.14B@news.cso.uiuc.edu> jas37876@uxa.cso.uiuc.edu (John A. Slagel) writes:
  13. >    Is there anyway to display a 24bpp DIB on a 256 color SVGA without
  14. >    implementing the code for color quantization?  I wrote some code to
  15. >    convert 24bpp images into 8bpp DIBs, but it takes around 10 seconds
  16. >    for a 512x512 DIB, and I just wonder if there is a better way.
  17. >
  18. >    I did try using SetDIBitsToDevice, but the picture only uses the 20
  19. >    system colors to draw the 24bpp DIB.  The result is pretty nasty looking.
  20. >
  21.  
  22. I doubt it.  The driver will use the system colors to display by default.
  23. Now you could create a standard palette with a range of colors in it.
  24. That would work better than just using the system palette.  Writing
  25. your own code is probably the only way to get a good image though.
  26.  
  27.  
  28. --
  29. Ed McCreary                                               ,__o
  30. mccreary@sword.eng.hou.compaq.com                       _-\_<,
  31. "If it were not for laughter, there would be no Tao."  (*)/'(*)
  32.