home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!nntp1.radiomail.net!fernwood!rtbrain!rightbrain.com
- From: glenn@rightbrain.com (Glenn Reid)
- Newsgroups: comp.sys.next.programmer
- Subject: Re: Tracking the currentdocument
- Message-ID: <843@rtbrain.rightbrain.com>
- Date: 16 Aug 92 18:47:44 GMT
- References: <1992Aug15.044803.13242@nic.umass.edu>
- Sender: glenn@rightbrain.com
- Reply-To: glenn@rightbrain.com
- Lines: 19
-
- Chris Lloyd writes
-
- > Get rid of this erase, it's pointless since you do a composite with COPY
- > right after it which just blasts over the fill.
- > > PSsetgray(NX_WHITE);
- > > NXRectFill(&rects[0]);
- >
- > > [image composite:NX_COPY
- > > fromRect:&rects[0]
- > > toPoint:&rects[0].origin];
-
- That's not quite good advice. If there is alpha in the image being
- composited, you'll get weird results on a color system if you don't
- fill with white first (you get black wherever there was alpha).
-
- --
- Glenn Reid NeXTmail: glenn@rightbrain.com
- RightBrain Software 415-326-2974 (NeXTfax 326-2977)
- Palo Alto, California
-