Path: utzoo!attcan!uunet!samsung!dali.cs.montana.edu!uakari.primate.wisc.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!psuvax1!psuvm!cxt105 From: CXT105@psuvm.psu.edu (Christopher Tate) Newsgroups: comp.sys.mac.programmer Subject: Re: Problems with SetLineWidth Message-ID: <90316.173043CXT105@psuvm.psu.edu> Date: 12 Nov 90 22:30:43 GMT References: <1990Nov5.203354.14090@wam.umd.edu> <11125@goofy.Apple.COM> <1990Nov10.213656.2583@fennel.cc.uwa.oz.au> Organization: Penn State University Lines: 38 In article <1990Nov10.213656.2583@fennel.cc.uwa.oz.au>, a_dent@fennel.cc.uwa.oz.au asks: >If I want to change line width to half point and back should I use: > >SetLineWidth(half) >draw my line >Pensize(1,1) > >OR > >SetLineWidth(half) >draw my line >SetLineWidth(one) >Pensize(1,1) > >OR > >SetLineWidth(half) >draw my line >SetLineWidth(one) As I recall, what you really want to do is: SetLineWidth(half) {draw your lines here} SetLineWidth(two) <-- note! SetLineWidth() just multiplies the current pen dimensions by the fraction that you pass in the arguments. So, when you want to restore the pen size that you were using before the original SetLineWidth(), you call it again with the numerator and denominator flipped. ------- Christopher Tate | cxt105@psuvm.bitnet | nobody, not even the rain, cxt105@psuvm.psu.edu | has such small hands. ..!psuvax1!psuvm.bitnet!cxt105 |