home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14986 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  2.1 KB

  1. Path: sparky!uunet!wupost!waikato.ac.nz!ldo
  2. From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Top byte of 24-bit offscreen gworld?
  5. Message-ID: <1992Sep4.174749.10618@waikato.ac.nz>
  6. Date: 4 Sep 92 17:47:49 +1200
  7. References: <28628@vedge.UUCP>
  8. Organization: University of Waikato, Hamilton, New Zealand
  9. Lines: 33
  10.  
  11. In article <28628@vedge.UUCP>, brad@vedge.UUCP (Brad Fowlow) writes:
  12. > Can anyone say how quickly or terribly things might
  13. > go awry if I try to keep some extra info in the top 8 bits
  14. > of the pixel data of a 24-bit offscreen gworld?
  15. >
  16. > That byte is awfully tempting as a place for alpha stuff.
  17. > And for the moment I'm not too concerned with how the code
  18. > will react under system 12; I just don't want sneaking
  19. > randomness to show up next week.
  20. > Have I missed something in IM6 that unequivocally rules
  21. > this out, or permits it?  Has anyone else been similiarly tempted?
  22.  
  23. I get the feeling from IM6 that there is no great crime in using the extra
  24. byte for your own purposes. Just bear in mind that most QuickDraw drawing calls
  25. clear that byte in pixels that they modify; I think it's only CopyBits and
  26. its relatives that would preserve that byte, and then probably not in all
  27. circumstances.
  28.  
  29. Basically Apple isn't interested in adding future alpha channel support or
  30. making any future use of that byte. Or so I gather. Remember, at least one
  31. of Apple's video cards doesn't even have RAM allocated to store that byte!
  32.  
  33. And, let's face it--what can you do with alpha channels, that you can't do
  34. using "blend" mode with CopyBits, and blend mask pixmaps with
  35. CopyMask/CopyDeepMask? These existing QuickDraw blending facilities are so much
  36. more powerful...
  37.  
  38. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  39. Computer Services Dept                     fax: +64-7-838-4066
  40. University of Waikato            electric mail: ldo@waikato.ac.nz
  41. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  42. Q: Why do dogs make poor astronauts?
  43. A: They keep sticking their head out the window and burning up on re-entry.
  44.