Article View: comp.sys.next.programmer
Article #1181Re: Tracking the currentdocument
From: Glenn Reid
Date: Sun, 16 Aug 1992 18:47
Date: Sun, 16 Aug 1992 18:47
19 lines
1063 bytes
1063 bytes
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
Technical Details
Message-ID:
<843@rtbrain.rightbrain.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!nntp1.radiomail.net!fernwood!rtbrain!rightbrain.comReferences:
<1992Aug15.044803.13242@nic.umass.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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