Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!fluke!ssc-vax!uvicctr!hedstrom From: hedstrom@uvicctr.UUCP (Brad Hedstrom) Newsgroups: comp.sys.mac.programmer Subject: HELP (easy -)) - Open & Close Picture Message-ID: <635@uvicctr.UUCP> Date: 15 Mar 89 06:53:40 GMT Distribution: na Organization: University of Victoria, Victoria B.C. Canada Lines: 36 I started programming on the Mac last week using LSC and am pulling my hair out trying to get this Picture thing to work. I want to define a small picture (using the OpenPicture and ClosePicture QuikDraw commands) and repeat it many times. The problem? I never get any graphics on the screen. I am using TranSkel and working from the MultiSkel demo (MultiZoom.c) that was archived with it. Below is the section of code where I am trying to define/draw the picture. I would be ever so thankful for any insights that you may be able to give me and maybe I'll even have some hair left on my head. static Update (resized) Boolean resized; { Integer i; Rect picSize, dstRect; PicHandle picH; EraseRect (&sysWind->portRect); /* erase window */ DrawGrowBox(sysWind); SetWindClip (sysWind); /* set clipRgn to portRect - growbox */ SetRect(&picSize, 0, 0, 120,100); picH = OpenPicture(&picSize); /* start "recording" picture */ MoveTo(0,0); Line(10,10); /* misc quikdraw command */ ClosePicture(); /* stop "recording" */ SetRect(&dstRect, 20, 20, 140,120); DrawPicture(&picH, &dstRect); ResetWindClip (sysWind); /* restore old clipRgn */ } Thanks for any comment or suggestions (like "pull your head out, lamo!") -- _____________________________________________________________________________ Brad Hedstrom, University of Victoria, ECE Dept. Internet: hedstrom@sirius.uvic.ca UUCP: ...!{uw-beaver,ubc-vision}!uvicctr!hedstrom