Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Imaging With QuickDraw /
Chapter 2 - Basic QuickDraw / Basic QuickDraw Reference
Routines / Managing Bitmaps, Port Rectangles, and Clipping Regions


Although you should never need to do so, you can set the bitmap for the current basic graphics port by using the SetPortBits procedure.

PROCEDURE SetPortBits (bm:\xDDBitMap); 
A BitMap record.
The SetPortBits procedure sets the portBits field of the current graphics port to any previously defined bitmap. Be sure to prepare all fields of the BitMap record before you call SetPortBits.

The SetPortBits procedure, 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 the CopyBits procedure. However, instead of using SetPortBits, you should use the more powerful offscreen graphics capabilities described in the chapter "Offscreen Graphics Worlds."

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996