[net.micro.mac] Changing a grafPort's portBits?

discolo@cookie.dec.com (Anthony D. CXO1-2/N23 522-2072) (10/31/86)

Does anyone know how to change the size of a grafPort's portBits
bitmap?  I am manipulating a 512x512 pixel image and need to increase
the size of portBits^.baseAddr from 314(?)x512 to 512x512 (also
changing portBits^.bounds to (0, 0, 512, 512), but that should be
easy: use SetRect).

There are a few of problems I'm having:

	(1) Whenever I use portBits^.baseAddr, I get an odd address
	    exception.  I'm using Lightspeed Pascal.

	(2) I don't know whether portBits^.baseAddr points to a
	    relocatable or non-relocatable block.  Do I use
	    RestoreHandle to get a handle from it, and then use
	    SetHandleSize, or do I use SetPtrSize?

	(3) When I create a brand new bitmap and assign it to portBits,
	    the  window toolbox routines get very confused
	    (i.e. the window changes to a different size,
	    no mouse-down events in the window work, etc.)
	   
Any help would be greatly appreciated.

Anthony

-----
Anthony Discolo
+---+---+---+---+---+---+---+
| d | i | g | i | t | a | l |
+---+---+---+---+---+---+---+
Database Systems Group
301 Rockrimmon Blvd. South
Mailstop CX01-2/N23
Colorado Springs, CO  80919
UUCP: ucbvax!decwrl!cookie.DEC!discolo
ARPA: cookie.DEC!discolo@decwrl.DEC.COM