Important: The information in this document is obsolete and should not be used for new development.
GetPenState
To determine the graphics pen's location, size, pattern, and pattern mode, you can use theGetPenState
procedure.
PROCEDURE GetPenState (VAR pnState: PenState);
pnState
- A
PenState
record for holding information about the graphics pen.DESCRIPTION
TheGetPenState
procedure saves the location, size, pattern, and pattern mode of the graphics pen for the current graphics port in aPenState
record, which theGetPenState
procedure returns in thepnState
parameter.After changing the graphics pen as necessary, you can later restore these pen states with the
SetPenState
procedure (described next).SEE ALSO
ThePenState
record is described on page 3-33.