Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!agate!shelby!neon!kaufman From: kaufman@Neon.Stanford.EDU (Marc T. Kaufman) Newsgroups: comp.sys.mac.programmer Subject: Re: Still need help creating a QuickDraw picture Message-ID: <1990Jun2.161412.27906@Neon.Stanford.EDU> Date: 2 Jun 90 16:14:12 GMT References: <2223@dftsrv.gsfc.nasa.gov> Organization: Computer Science Department, Stanford University Lines: 21 In article <2223@dftsrv.gsfc.nasa.gov> seiler@amarna.gsfc.nasa.gov writes: ... (stuff deleted) >SetPort(windPtr); >picHndl = OpenPicture(&(windPtr->portRect)); >CopyBits(&(windPtr->portBits), &(windPtr->portBits), > &(windPtr->portRect), &(windPtr->portRect), srcCopy, NULL); >ClosePicture(); >no copybits opcode shows up, but the sequence: version op, version, header op, >size, fBBox, <4 bytes reserved>, DefHilite, Clip, opEndPic occurs. Let me try (after all, everyone else has :-) ). I don't see why you are changing ports. Why not just do the OpenPicture on your screen grafPort? The picture traps will catch everything. If you really want to use another port, you need to make sure that the portRect, clipRgn, and visRgn are correct. You do NOT need to worry about the portBits.bounds, and indeed, you do not need any bitMap/Pixmap actually allocated for a port that is only used for capturing a picture. Marc Kaufman (kaufman@Neon.stanford.edu)