Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!sunybcs!boulder!tramp!ewing From: ewing@tramp.Colorado.EDU (EWING DAVID JAMES) Newsgroups: comp.sys.mac.programmer Subject: Re: lasso effect? Message-ID: <15276@boulder.Colorado.EDU> Date: 31 Dec 89 19:32:07 GMT References: <9423@hoptoad.uucp> Sender: news@boulder.Colorado.EDU Reply-To: ewing@tramp.Colorado.EDU (EWING DAVID JAMES) Organization: University of Colorado, Boulder Lines: 17 In article <9423@hoptoad.uucp> tim@hoptoad.uucp (Tim Maroney) writes: >I'm using a C version of David Berry's marquee selection code on some >MacPaint documents (thanks, dwb!) It works very well. Now how do I do >a lasso effect? I don't mean the tracking and region computation. I >mean the weird shimmering that MacPaint and HyperCard do once the item >is selected. If you have a region you can get the effect by simply calling FrameRgn() with successive patterns (using PenPat() of course). If you've created a disjoint region with CalcMask() and BitMapToRegion(), then this will look just the way you want it. There's probably another way to do this using CalcMask and CopyMask (i.e. without a region), but I can't figure it out right away. Dave Ewing ewing@tramp.colorado.edu (128.138.238.33) ..!hplabs!boulder!onecom!tyvax!iftech!dave (My Mac IIx running uupc & MacOS!) AppleLink: D2408 (D2408@applelink.apple.com)