Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!oliveb!apple!IanHendry@apple.com From: IanHendry@apple.com (Ian Hendry) Newsgroups: comp.sys.mac.programmer Subject: Re: Have you used NewGDevice? Message-ID: <966@internal.Apple.COM> Date: 17 Mar 89 18:10:46 GMT References: <1240@mmm.UUCP> Sender: usenet@Apple.COM Distribution: usa Organization: Apple Computer, Inc. Lines: 27 > I am attempting to create a graphics device for use with an off screen >pixMap on a mac II. According to Inside Mac V, one should begin with a >call to NewGDevice( refNum: INTEGER; mode: LONGINT ). Since I would have >no driver, IM V says to use -1 for the mode. However, I have no idea as to what >to use for refNum. >If you can tell me, please do. The correct call is myGDevice = NewGDevice(-1,-1); The refnum to use is -1 for creating off screen pixMaps. At the moment I don't know if anything bad will happen if you use 0 and I don't know why it is not documented, but I was told by one of the head quickdraw guys to use -1, so I do. I am hoping for a tech note on the subject to make it official (obviously making this posting "unofficial"). Hope this helps, Ian Hendry No E-mail, post replies to network. TE: 408-974-4737 Disclaimer: It was all HIS idea anyway!