Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!psuvax1!uwm.edu!zaphod.mps.ohio-state.edu!sunybcs!boulder!steelem From: steelem@boulder.Colorado.EDU (STEELE MARK ALLEN) Newsgroups: comp.sys.mac.programmer Subject: CopyBits ????? Message-ID: <17791@boulder.Colorado.EDU> Date: 6 Mar 90 01:01:09 GMT Sender: news@boulder.Colorado.EDU Reply-To: steelem@boulder.Colorado.EDU (STEELE MARK ALLEN) Distribution: usa Organization: University of Colorado, Boulder Lines: 20 I have managed to load in a picture resource, draw it to a rectangle on an off screen bit map (I assume I am getting it drawn) I looked at the resource and it looks ok if I send it straight to the screen. So What I did then is set up a destination rectangle on the main screen and did a CopyBits to it with the following code: offScreenBitMap : BitMap; srcRect : Rect; dstRect : Rect; CopyBits(offScreenBitMap,myWindow^.portBits,srcRect,dstRect,srcCopy,NIL); and the garbage I get on the screen is incredible!! If I run the same steps in a program that draws to the screen (no windows, menus etc.) it works perfectly, why not on a window??? Question #2: Symantec advertises all the products that have been developed with think pascal and think C well what did they use to develope their languages in??? -Mark Steele