PenPat
PenPat
Set the graphics pen pattern PatPtr newPat ; address of a Pattern structure PenPat sets the pen pattern, which is used by all subsequent Quickdraw drawing and painting operations.
newPat is the address of an 8-byte Pattern structure.
Notes: This replaces the 8-byte pnPat field of the active GrafPort. You may use one of the globally- defined patterns, white, gray, ltGray, dkGray, or black.
PenPat( dkGray ); /* external constant */ Or you can create a pattern and use it:
StuffHex( &myPat, "\p0202020404040808" ); Or you can go for the current desktop pattern (as set by the user via the
Control Panel).
PenPat( DeskPattern ); [TOKEN:12074] defined in SysEqu.h */ Or you can use one of the 'standard patterns' by looking it up in the system
resource file:
Pattern myPat; /* structure to hold pattern */