home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / graphics / 8825 < prev    next >
Encoding:
Text File  |  1992-08-14  |  2.1 KB  |  54 lines

  1. Newsgroups: comp.graphics
  2. Path: sparky!uunet!mcsun!ieunet!tcdcs!vax1.tcd.ie!rjbolger
  3. From: rjbolger@vax1.tcd.ie
  4. Subject: Re: 24bit > 8bit Display Question
  5. Message-ID: <1992Aug14.115842.1@vax1.tcd.ie>
  6. Lines: 40
  7. Sender: usenet@cs.tcd.ie (NN required at ashe.cs.tcd.ie)
  8. Nntp-Posting-Host: vax1.tcd.ie
  9. Organization: Trinity College Dublin
  10. References: <BssDHt.19u@news.cso.uiuc.edu>
  11. Date: Fri, 14 Aug 1992 11:58:42 GMT
  12. Lines: 40
  13.  
  14. In article <BssDHt.19u@news.cso.uiuc.edu>, pgrg9345@uxa.cso.uiuc.edu (pAul rAdja ) writes:
  15. > Question:  I need to be able to display a 24bit image on a 
  16. > pc that only has an 8bit look-up table. Does anyone know of a
  17. > good way or reference on how to optimally fill the
  18. > table up? Speed is a strong consideration in my problem.
  19.  
  20. For a quick way of displaying 24 bit images on a 256 color display
  21. with good quality, you can tradeoff screen resolution for extra
  22. depth.
  23.  
  24. First generate a palette of three colour ramps of r,g & b, with g & b 
  25. going from 0 to 63 in intensity and r going from 0 to 31. Then plot
  26. each image pixel using four screen pixels as such:
  27.              _____________________
  28.                |     |         |
  29.                | Red     |     Green |
  30.                |---------------------|
  31.                |     |         |
  32.                | Blue     |     Red   |
  33.                |---------------------|
  34.  
  35. This works surprisingly well giving a '17' bit display but only at
  36. resolutions greater than 320x200.  I'm lucky enough to have a 1MB 
  37. Trident card that gives 1024x768 resoloution, and using this technique
  38. I get an apparent res of 512x384 which is good enough for my needs.
  39.  
  40. You can try other combinations such as three screen pixels per image
  41. element, but this introduces artifacts in the image.  Using Red twice
  42. and halving its intensity was the best combination that I could find.
  43.  
  44. The drawback with this method is that the image is displayed at a low
  45. intensity because only 1/3 of the screen guns are switched on, but the
  46. overall quality is really quite good.
  47.  
  48. Hope this helps, but if you need any more info contact me through E-mail.
  49.  
  50. Regards,
  51.              * Richard Bolger         *
  52. Richard.         * Trinity College Dublin *
  53.              * Rjbolger@vax1.tcd.ie   *
  54.