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 3 - QuickDraw Drawing / QuickDraw Drawing Reference
Routines / Managing the Graphics Pen


GetPenState

To determine the graphics pen's location, size, pattern, and pattern mode, you can use the GetPenState procedure.

PROCEDURE GetPenState (VAR pnState: PenState); 
pnState
A PenState record for holding information about the graphics pen.
DESCRIPTION
The GetPenState procedure saves the location, size, pattern, and pattern mode of the graphics pen for the current graphics port in a PenState record, which the GetPenState procedure returns in the pnState parameter.

After changing the graphics pen as necessary, you can later restore these pen states with the SetPenState procedure (described next).

SEE ALSO
The PenState record is described on page 3-33.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996