home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!asuvax!ncar!uchinews!ellis!merv
- From: merv@ellis.uchicago.edu (garrett marvin derner)
- Subject: Offscreen colors
- Message-ID: <1992Aug12.180306.2987@midway.uchicago.edu>
- Sender: news@uchinews.uchicago.edu (News System)
- Reply-To: merv@midway.uchicago.edu
- Organization: University of Chicago Computing Organizations
- Date: Wed, 12 Aug 1992 18:03:06 GMT
- Lines: 77
-
- Is it possible to draw offscreen in *exact* 8-bit colors?
- I have written a test prog to PaintRect onto the screen and
- into a GWorld, using the same palette color each time.
- When I CopyBits from the GWorld to the actual screen, the color
- ends up an approximation, noticably different.
- I first tried using SetPalette on the GWorld pointer.
- I also tried copying the palette to a color table with Palette2CTab,
- and specifying that CTable in the NewGWorld call.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C
-
-
- B
- B
- B
- C
- C
- C
- C
- C
- C
- A
- A
- A
- A
- A
- A
- B
- B
- B
- B
- B
- B
- A
- A
- A
- A
- A
- A
- B
- B
- B
- B
- B
- B
- B
- B
- A
- A
- A
-
-
- C
- ends up an approximation, notica
-