PRESCRIBE Command Reference
268
SCG — Save Current Graphics state
Format
SCG;
Parameter
None
Function
The SCG command saves the graphics state comprised of the following characteristics:
• Current path and cursor position
• Current pen diameter
• Current line join
• Current line cap
• Current miter limit
• Current dash pattern
• Current flatness
• Current current fill pattern (16 × 16 dots)
• Current current clipping path
• Current raster resolution
• Current image model
Once the current graphics state is saved, it can be retrieved later using the RPG (return to
previous graphics state) command. Saving and retrieving the graphics state in this way
simplifies recovery of paths which stroke a filled and outlined shape. Note that the FILL
command clears the current path, leaving no strokable path.
The printing system holds as much graphics state information as the user memory area
can accommodate; however, graphics state information larger than the memory area can
cause a memory error.
File
!R! RES; UNIT C;
NEWP;
PMZP 5, 5;
SFNT ’Helvetica-Bd’, 72;
CPTH ’Mary’;
SCG;
STRK;
RPG;
GPAT .9;
FILL 1;
PAGE;
EXIT;