home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 13892 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.0 KB  |  89 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!asuvax!ncar!uchinews!ellis!merv
  3. From: merv@ellis.uchicago.edu (garrett marvin derner)
  4. Subject: Offscreen colors
  5. Message-ID: <1992Aug12.180306.2987@midway.uchicago.edu>
  6. Sender: news@uchinews.uchicago.edu (News System)
  7. Reply-To: merv@midway.uchicago.edu
  8. Organization: University of Chicago Computing Organizations
  9. Date: Wed, 12 Aug 1992 18:03:06 GMT
  10. Lines: 77
  11.  
  12. Is it possible to draw offscreen in *exact* 8-bit colors?
  13. I have written a test prog to PaintRect onto the screen and
  14. into a GWorld, using the same palette color each time.
  15. When I CopyBits from the GWorld to the actual screen, the color 
  16. ends up an approximation, noticably different.
  17. I first tried using SetPalette on the GWorld pointer.
  18. I also tried copying the palette to a color table with Palette2CTab,
  19. and specifying that CTable in the NewGWorld call.
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44. C
  45.  
  46.  
  47. B
  48. B
  49. B
  50. C
  51. C
  52. C
  53. C
  54. C
  55. C
  56. A
  57. A
  58. A
  59. A
  60. A
  61. A
  62. B
  63. B
  64. B
  65. B
  66. B
  67. B
  68. A
  69. A
  70. A
  71. A
  72. A
  73. A
  74. B
  75. B
  76. B
  77. B
  78. B
  79. B
  80. B
  81. B
  82. A
  83. A
  84. A
  85.  
  86.  
  87. C
  88. ends up an approximation, notica
  89.