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 / Opening and Closing Basic Graphics Ports


InitPort

You should never need to use the InitPort procedure. The OpenPort procedure calls the InitPort procedure, which reinitializes the fields of a basic graphics port and makes it the current port.

PROCEDURE InitPort (port:\xDDGrafPtr);
port
A pointer to a GrafPort record.
DESCRIPTION
The InitPort procedure reinitializes the fields of a GrafPort record that was opened with the OpenPort procedure, and makes it the current graphics port. The InitPort procedure sets the values of the port's fields to those listed in the OpenPort procedure description. The InitPort procedure does not allocate space for the visible or clipping regions.

SEE ALSO
The InitCPort procedure (described in the chapter "Color QuickDraw") initializes a color graphics port.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996