[comp.sys.mac.programmer] Color GrafPort & Device help!

Steve_A_Hales@cup.portal.com (10/25/89)

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
---------------------------------------------------------------------------