Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!wugate!uunet!portal!cup.portal.com!Steve_A_Hales From: Steve_A_Hales@cup.portal.com Newsgroups: comp.sys.mac.programmer Subject: Color GrafPort & Device help! Message-ID: <23359@cup.portal.com> Date: 25 Oct 89 01:42:43 GMT Organization: The Portal System (TM) Lines: 30 Aloha, I know I'm not the only one trying to do this... I want to create an offscreen color grafport, but need a device with the matching pixel depth. Has anyone successfully done this? In 'C'? I've tried creating a color grafport with the code examples in TN #120, but they crash sometimes when the bounds get large. >100 x >100. I want to make it modualar ie: theDevice = CreateDevice(theDepth); SetGDevice(theDevice); theColorPort = CreateColorPort( width, height, theDepth); SetPort(theColorPort); ... FreeColorPort(theColorPort); FreeDevice(theDevice); Would anyone be willing to pass along some examples? Thanks in advance. --------------------------------------------------------------------------- UUCP: Steve_A_Hales@cup.portal.com OR sun!cup.portal.com!Steve_A_Hales FONE: 415/449-5297 MAIL: 882 Hagemann Drive, Livermore, CA, 94550-2520 ---------------------------------------------------------------------------