home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / bit / listserv / win3l / 12886 < prev    next >
Encoding:
Text File  |  1993-01-25  |  2.5 KB  |  54 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!INFERENCE.COM!TUNNY
  3. Message-ID: <9301251909.AA01491@montana.inference>
  4. Newsgroups: bit.listserv.win3-l
  5. Date:         Mon, 25 Jan 1993 11:09:54 PST
  6. Sender:       Microsoft Windows Version 3 Forum <WIN3-L@UICVM.BITNET>
  7. From:         Jim Tunnicliffe <tunny@INFERENCE.COM>
  8. Subject:      Re: 256 colors...
  9. Lines: 43
  10.  
  11. > Hello everyone,
  12. >
  13. > Can anybody explain the following:
  14. >
  15. > I'm using Win 3.1 w/TSENG ET4000 based card... When in a 256 color mode this
  16. > strange thing happens: if I try to open more than one session of a GIF viewer
  17. > and display only 256 color pictures the only one that looks OK is the one in t
  18.  he
  19. >    active window.As soon as I switch to another viewing session the old active
  20. > session drops down to what looks like 16 color and now the new active session
  21. > looks ok...
  22. >
  23. > So,does anybody have a clue what happens here?
  24. >
  25. > Thanks,Nick.
  26.  
  27. Nothing strange about it.
  28.  
  29. In 256-color mode, you've got (you guessed it) 256 different colors to work
  30. with.  You get to choose which 256 out of a much larger number of colors that
  31. your machine is capable of generating, and you can change which set of 256
  32. is active at a given time, but YOU ONLY GET 256.  This is known as "color
  33. mapping", where a number (in this case an 8-bit value, from 0-255) is used
  34. as an index into a "color map" which holds the actual color value to display.
  35. If you have two 256-color pictures with different color maps (different sets
  36. of colors) there's no way they can both be displayed with the correct colors.
  37. Windows does the most reasonable thing, and switches the color map to fit
  38. whatever picture you have in the active window, which means that some of the
  39. colors elsewhere may be mapped into something else.  (By the way, the other
  40. picture is still displayed in 256 colors, not 16, but the colors are probably
  41. quite inappropriate.)
  42.  
  43. If this explanation doesn't make sense, send me private email and I'll be
  44. happy to elaborate.
  45.  
  46.         - tunny
  47. ______________________________________________________________________________
  48. James A. Tunnicliffe        |                                           \\
  49. Inference Corporation       |     In f e  r  e   n   c    e      ========\\
  50. (800) 322-5590              |     Helping people work smarter... ========//
  51. tunny@Inference.com         |                                           //
  52. ------------------------------------------------------------------------------
  53. Views expressed are my own and do not necessarily reflect those of my employer
  54.