Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!ncar!ames!pasteur!helios.ee.lbl.gov!ux1.lbl.gov!beard From: beard@ux1.lbl.gov (Patrick C Beard) Newsgroups: comp.sys.mac.programmer Subject: Re: Method to Define my own "strechable shapes" Message-ID: <2432@helios.ee.lbl.gov> Date: 18 Apr 89 09:16:17 GMT References: <820@garcon.cso.uiuc.edu> Sender: usenet@helios.ee.lbl.gov Reply-To: beard@ux1.lbl.gov (Patrick C Beard) Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 23 In article <820@garcon.cso.uiuc.edu> emb90619@uxa.cso.uiuc.edu (Eric M Berdahl) writes: >Here's my problem: >I have a general shape stored in a RgnHandle. ... >I want to be able to take this arbitrary shape and drag it out to >an arbitrary size (ala MacDraw). I have looked at MapRgn() and >InsetRgn() and neither routine gives me just what I'm looking for. >(Of course, I may just be doing them wrong.) ... >-Eric You probably are using InsetRgn incorrectly. If you pass negative values for dh and dv, you will grow the region. If you have different values for dh and dv, you can grow in a non-uniform way, just like the grow handles in MacDraw. __________________ Patrick Beard PCBeard@lbl.gov BSI, Berkeley, CA ___________________