Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!claris!apple!lsr From: lsr@Apple.COM (Larry Rosenstein) Newsgroups: comp.sys.mac.programmer Subject: Re: Maybe I'm dumb but... Message-ID: <7528@apple.Apple.Com> Date: 1 Mar 88 23:56:18 GMT References: <23120@brunix.UUCP> Reply-To: lsr@apple.UUCP (Larry Rosenstein) Organization: Advanced Technology Group, Apple Computer Lines: 22 Keywords: DrawPicture In article <23120@brunix.UUCP> omh@brunix.UUCP (Owen M. Hartnett) writes: > >alter the picFrame rectangle so that it is relative to point 0,0 > >Now, from my application, Get the picture, and call > DrawPicture(myPic,myPic^^.picFrame); > >Now, wouldn't you expect the picture to get drawn in the upper left corner >of your window? Nah... It's somewhere in your window. I think you should not modify the picture resource, but simply specify the appropriate rectangle to DrawPicture. If I had to guess at what was happening, I would say that the picture bytes specify absolute coordinates and since the rectangle in the picture is the same as that in the call to DrawPicture, Quickdraw would not offset the coordinates when drawing the picture. -- Larry Rosenstein, Object Specialist Apple Computer, Inc. 20525 Mariani Ave, MS 32E Cupertino, CA 95014 AppleLink:Rosenstein1 domain:lsr@Apple.COM UUCP:{sun,voder,nsc,decwrl}!apple!lsr