Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site tmq.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!tmq!darin From: darin@tmq.UUCP (Darin Adler) Newsgroups: net.micro.mac Subject: Re: HELP!! QD picture recording driving me crazy Message-ID: <167@tmq.UUCP> Date: Sat, 16-Mar-85 00:46:15 EST Article-I.D.: tmq.167 Posted: Sat Mar 16 00:46:15 1985 Date-Received: Sun, 17-Mar-85 02:14:42 EST References: <193@tekcbi.UUCP> Organization: tmq/ICOM Buffalo Grove, IL Lines: 35 > > Could some kind person please peruse the following code fragment and > tell me what I am doing wrong? I have read QuickDraw(3-2-83) and the > Scrap Manager(11-16-83) about four zillion times without finding a > clue. > > glorpRect=TestRect; > pHndl=OpenPicture(&TestRect); > MoveTo(pass(topLeft(TestRect))); /* a few random */ > LineTo(pass(botRight(TestRect))); /* lines and */ > FrameOval(&TestRect); /* ovals and */ > MoveTo(0,0); LineTo(100,100); /* other such stuff*/ > ClosePicture(); > > /* if the glorpRect is changed to any size not equal to TestRect */ > /* then the following DrawPicture will not work. */ > > InsetRect(&glorpRect,0,0); /* try any non-zero value! */ > DrawPicture(pHndl,&glorpRect); > > Larry Hutchinson, Tektronix, Inc. PO Box 500, MS Y6-546, Beaverton, OR 97077 > { decvax,allegra }!tektronix!tekcbi!larryh It sounds like you have a ClipRect problem. When QD scales a picture, it also scales the ClipRect. If I am not mistaken, this causes problems a lot of the time, since the ClipRect is often set to -32768,-32768,32767,32767. Try setting the ClipRect to something reasonable like the portRect. This little "bug" drives me crazy, even when I know to expect it. Darin Adler ihnp4!tmq!darin "Opinions expressed in this document not necessarily correct."