| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version |
Arguments: stream &optional (result-context (make-graphics-context stream))
Returns a graphics-context object that stores the current drawing
style options of
stream. stream should be a
cg-stream
.
The graphics-context can later be given to the same or another stream to resume using the saved drawing style options. The specific values saved are foreground-color, background-color, font, line-width, line-dashing, line-end, line-join, line-texture, fill-texture, background-texture, current-position, and stream-origin.
If a graphics-context is passed as the result-context argument, then this object is filled in and returned. Otherwise a new graphics-context is created and returned. (You create a graphics context object with make-graphics-context. Pass the same stream to that function as was passed as the first argument to this function.)
See also set-graphics-context, graphics-context-p, and restoring-graphics-context.
Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version |