home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / next / programm / 5650 < prev    next >
Encoding:
Internet Message Format  |  1992-08-16  |  1.0 KB

  1. Path: sparky!uunet!nntp1.radiomail.net!fernwood!rtbrain!rightbrain.com
  2. From: glenn@rightbrain.com (Glenn Reid)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: Tracking the currentdocument
  5. Message-ID: <843@rtbrain.rightbrain.com>
  6. Date: 16 Aug 92 18:47:44 GMT
  7. References: <1992Aug15.044803.13242@nic.umass.edu>
  8. Sender: glenn@rightbrain.com
  9. Reply-To: glenn@rightbrain.com
  10. Lines: 19
  11.  
  12. Chris Lloyd writes
  13.  
  14. > Get rid of this erase, it's pointless since you do a composite with COPY
  15. > right after it which just blasts over the fill.
  16. > >    PSsetgray(NX_WHITE);
  17. > >    NXRectFill(&rects[0]);
  18. > >    [image composite:NX_COPY
  19. > >              fromRect:&rects[0]
  20. > >              toPoint:&rects[0].origin];
  21.  
  22. That's not quite good advice. If there is alpha in the image being
  23. composited, you'll get weird results on a color system if you don't
  24. fill with white first (you get black wherever there was alpha).
  25.  
  26. --
  27.  Glenn Reid                NeXTmail: glenn@rightbrain.com
  28.  RightBrain Software        415-326-2974 (NeXTfax 326-2977)
  29.  Palo Alto, California
  30.