Important: The information in this document is obsolete and should not be used for new development.
SetPortBits
Although you should never need to do so, you can set the bitmap for the current basic graphics port by using theSetPortBitsprocedure.
PROCEDURE SetPortBits (bm:\xDDBitMap);
bm- A
BitMaprecord.DESCRIPTION
TheSetPortBitsprocedure sets theportBitsfield of the current graphics port to any previously defined bitmap. Be sure to prepare all fields of theBitMaprecord before you callSetPortBits.SPECIAL CONSIDERATIONS
TheSetPortBitsprocedure, created in early versions of QuickDraw, allows you to perform all normal drawing and calculations on a buffer other than the screen--for example, copying a small offscreen image onto the screen with theCopyBitsprocedure. However, instead of usingSetPortBits, you should use the more powerful offscreen graphics capabilities described in the chapter "Offscreen Graphics Worlds."