Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!mintaka!bloom-beacon!eru!kth.se!cyklop.nada.kth.se!news From: d88-jwa@byse.nada.kth.se (Jon W{tte) Newsgroups: comp.sys.mac.programmer Subject: Re: Selecting lines Message-ID: <1991Mar6.073428.13205@nada.kth.se> Date: 6 Mar 91 07:34:28 GMT References: Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 21 In article <> ba0k+@andrew.cmu.edu (Brian Patrick Arnold) writes: > I need a little help on finding a good algorithm for selecting lines >as objects, er, the detection of a mouse click "close enough" to a line. The last time around, the consensus was to use QuickDraw: Create an offscreen port with portBits just one/two/(your-marginal) pixels wide & tall. Draw your stuff, from front to back, in this port, and see when the portBits change. QuickDraw clipping makes this quite fast. >- Brian h+@nada.kth.se Jon W{tte "The IM-IV file manager chapter documents zillions of calls, all of which seem to do almost the same thing and none of which seem to do what I want them to do." -- Juri Munkki in comp.sys.mac.programmer