home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / next / misc / 23190 < prev    next >
Encoding:
Text File  |  1992-12-20  |  3.3 KB  |  66 lines

  1. Newsgroups: comp.sys.next.misc
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!usc!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!news
  3. From: wjs@blorf.omnigroup.com (William Shipley)
  4. Subject: Explanation- Re: Lack of color brilliance in GIF pictures?
  5. Message-ID: <1992Dec18.084848.433@u.washington.edu>
  6. Sender: news@u.washington.edu (USENET News System)
  7. Organization: University of Washington
  8. References: <1992Dec16.154431.18394@bernina.ethz.ch>
  9. Date: Fri, 18 Dec 1992 08:48:48 GMT
  10. Lines: 54
  11.  
  12. Florian Gutzwiller writes
  13. > If I compare the color brillance of GIF prictures on a NeXT 16bit system 
  14. > and a Sun 8 bit display the Sun is much more brillant. This is not a 
  15. > monitor problem for sure. I'm using ImageViewer. 
  16.  
  17. Assuming that the Sun has 8-bit graphics that use a Color Look-Up Table (CLUT)  
  18. to map to 24-bit color values, it's no surprise that GIF images look better on  
  19. the Sun.
  20.  
  21. Basically, the NeXTstation color has 12-bit color, where these twelve bits  
  22. actually represent the Red, Green, and Blue components at each pixel (4 bits  
  23. apiece).  This is called true color.  This gives your NSC the ability to  
  24. simultaneously display 4096 different colors from a palette of 4096 possible  
  25. colors.
  26.  
  27. The Sun has 8-bit color, but those 8 bits are just used as an offset into a  
  28. table of 256 colors, where each color in the table has 24 bits.  This is called  
  29. indexed color.  Thus on the Sun you have the ability to simultaneously display  
  30. 256 different colors from a palette of 16,777,216 possible.
  31.  
  32. GIF files, as it happens, are stored the way the Sun displays images; ie each  
  33. pixel is just an 8-bit index into a table of 256 24-bit colors.
  34.  
  35. When you display a GIF on an NSC, the 24-bit colors in the file must be  
  36. approximated with 4096 colors the NSC has available.  So, obviously, when you  
  37. have an image that can have a subset of 16 million distinct colors, and you try  
  38. to display it on a monitor that can only show a subset of 4096 distinct colors,  
  39. the image is going to look a little washed out.
  40.  
  41. When you display the GIF on the Sun, the Sun just sets its Color Look-Up Table  
  42. to be the 256 colors in the GIF file, and VOILA you're displaying the original  
  43. 24-bit color values that are actually in the file.
  44.  
  45. Well, great, you say, why does anyone bother with this true color junk when  
  46. indexed color gives you so many more colors?  Well, it doesn't, really.   
  47. Indexed color gives you a nice large palette of colors, but you have to pick  
  48. your 256 favorite of them.
  49.  
  50. Thus, images without a lot of different colors in them look great in indexed  
  51. formats (like GIF), since you can have a lot more shades of the same color.   
  52. Images with a lot of different colors will probably look better in true color,  
  53. since you have the ability to display more different colors, even if the  
  54. palette you are choosing from is smaller.
  55.  
  56. -William Shipley
  57. The Omni Group
  58. DBKit consulting, and now 3.0 image filtering
  59.  
  60. PS: PostScript also gives you dithering, which allows you to simulate having  
  61. more colors by drawing two (or more) colors right beside each other and  
  62. trusting your eye to blur them together as if they were one pixel.  Thus, if  
  63. your GIFs look washed out, one solution is to magnify them and back away from  
  64. your monitor.  (Another would be to buy a 24-bit true color board, like the  
  65. NeXTdimension, but the former seems cheaper.)
  66.