GetPenState
To determine the graphics pen's location, size, pattern, and pattern mode, you can use theGetPenStateprocedure.
PROCEDURE GetPenState (VAR pnState: PenState);
pnState- A
PenStaterecord for holding information about the graphics pen.DESCRIPTION
TheGetPenStateprocedure saves the location, size, pattern, and pattern mode of the graphics pen for the current graphics port in aPenStaterecord, which theGetPenStateprocedure returns in thepnStateparameter.After changing the graphics pen as necessary, you can later restore these pen states with the
SetPenStateprocedure (described next).SEE ALSO
ThePenStaterecord is described on page 3-33.