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

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!jas37876
  3. From: jas37876@uxa.cso.uiuc.edu (John A. Slagel)
  4. Subject: Disp 24bpp on 8bpp system?
  5. Message-ID: <C0K4nM.14B@news.cso.uiuc.edu>
  6. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  7. Organization: University of Illinois at Urbana
  8. Date: Fri, 8 Jan 1993 22:47:43 GMT
  9. Lines: 16
  10.  
  11.     Is there anyway to display a 24bpp DIB on a 256 color SVGA without
  12.     implementing the code for color quantization?  I wrote some code to
  13.     convert 24bpp images into 8bpp DIBs, but it takes around 10 seconds
  14.     for a 512x512 DIB, and I just wonder if there is a better way.
  15.  
  16.     I did try using SetDIBitsToDevice, but the picture only uses the 20
  17.     system colors to draw the 24bpp DIB.  The result is pretty nasty looking.
  18.  
  19.     So, I would be intereseted in hearing how other people got around the
  20.     problem of using 24bpp DIBs on a 256 color system.  Thanks!
  21.  
  22. -- 
  23. -----------------------------------------------------------------------------
  24.  John A. Slagel              "My old man used to tell me, before he left this
  25.  j-slagel1@uiuc.edu           shitty world, never chase buses or women- you
  26.  (217) 337-7930               always get left behind." -The Marlboro Man
  27.