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