Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site joevax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!magic!joevax!sdh From: sdh@joevax.UUCP (The Doctor) Newsgroups: net.micro.mac Subject: surrounding lines with regions Message-ID: <246@joevax.UUCP> Date: Tue, 19-Aug-86 13:42:50 EDT Article-I.D.: joevax.246 Posted: Tue Aug 19 13:42:50 1986 Date-Received: Wed, 20-Aug-86 05:20:58 EDT Distribution: net Organization: Bell Communications Research Inc., Morristown, NJ Lines: 13 posted to net.sources.mac is C source to surround a line with a region defined as a rectangle 2 pixels wider on each side. A few notes, in my original reply to the question, I assumed you could use "improper" rectangles. This is not the case. The routine probably does not do what the original question wants, what does what it asks. A rectangle is defined so that 2 opposite corners are the endpoints of a line, then expands the rect 2 pixels on a side and makes it a Quickdraw region. If that region is framed, it draws the frame INSIDE the rectangle definition, making it tangent to the line, instead of disjoint. Steve Hawley joevax!sdh