Path: utzoo!attcan!uunet!aplcen!samsung!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!apple!apple.com!casseres From: casseres@apple.com (David Casseres) Newsgroups: comp.sys.mac.programmer Subject: Re: QuickDraw Scaling Message-ID: <8476@goofy.Apple.COM> Date: 31 May 90 18:03:45 GMT References: <1861@cybaswan.UUCP> Sender: usenet@Apple.COM Organization: Apple Computer, Inc. Lines: 17 In article <1861@cybaswan.UUCP> csparr@cybaswan.UUCP (Jason Parr) writes: > In QuickDraw you can translate the co-ordinate system, is there any way > to scale the co-ordinate system by some factor with LineTo, TextSize > etc scaled appropriately? > > One way I thought of doing this was by overriding the standard QuickDraw > procedures. Is this the correct way to do this or is there an easier > method? That's a perfectly good way to do it; another is to draw stuff into a picture, using a picFrame rectangle of some size in the OpenPicture call, and then drawing the picture with a dstRect rectangle of a different size in the DrawPicture call. QuickDraw will scale everything in the picture in such a way as to make the picFrame match the dstRect. David Casseres Exclaimer: Hey!