Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!decvax!mcnc!gatech!bloom-beacon!husc6!cca!mirror!rayssd!brunix!nancy!omh From: omh@nancy (Owen M. Hartnett) Newsgroups: comp.sys.mac.programmer Subject: Maybe I'm dumb but... Message-ID: <23120@brunix.UUCP> Date: 26 Feb 88 02:48:54 GMT Sender: root@brunix.UUCP Reply-To: omh@brunix.UUCP (Owen M. Hartnett) Organization: Brown University Computer Science Dept. Lines: 40 Keywords: DrawPicture I can't figure out why this doesn't work: Draw a Picture in MacPaint, save to Scrapbook, copy it out of Scrapbook with ResEdit and paste into my application. Still in ResEdit, open the picture (Open general) and alter the picFrame rectangle so that it is relative to point 0,0 (i.e. change the left coordinate to 0 and adjust the right coordinate so that it maintains the same width, do likewise for top and bottom). 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've even done: FrameRect(myPic^^,picFrame); DrawPicture(myPic,myPic^^.picFrame); and the Picture is *not* inside the Rectangle. ...and, if you try to install myPic in the windowPic field of your window, you don't know where it's going to go, either. Any ideas? Owen Hartnett Brown University Computer Science omh@cs.brown.edu.CSNET omh%cs.brown.edu {ihnp4,allegra}!brunix!omh "Don't wait up for me tonight because I won't be home for a month." -W.C. Fields