Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!dinghy.cis.ohio-state.edu!topping From: topping@dinghy.cis.ohio-state.edu (brian e. topping) Newsgroups: comp.sys.mac.programmer Subject: Re: Several MAC programming questions Message-ID: <34828@tut.cis.ohio-state.edu> Date: 12 Feb 89 07:41:17 GMT References: <7236@june.cs.washington.edu> Sender: news@tut.cis.ohio-state.edu Reply-To: brian e. topping Distribution: usa Organization: Ohio State University Computer and Information Science Lines: 16 in reply to your first question... > 1) Is there any way to "remove" quickdraw calls from a picture definition? > (clearly one could build a list of the quickdraw calls, and rebuild > the picture, but I'm looking for something simpler). I'm not sure if this is what you are after, but you can convert an "object" PICT to a bitmap PICT by finding the rectangle of where the picture will be drawn, draw the picture normally, then call _OpenPicture to set up a new picture. Pretty standard so far. Everything you do with QuickDraw now is saved in this picture definition. At this point doing a _CopyBits from anywhere to anywhere (I use the same rectangle for both) will save those bits that compose the picture as a bitmap in the picture definition you have started with _OpenPicture. Since the bitmap is all you want, call _ClosePicture and then you can do waht you want with the handle, probably _AddResource. I do this conversion offscreen so the user is not annoyed by flashing pictures (subliminal messages??) -bri