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