Next: , Previous: , Up: Graphics Contexts   [Contents][Index]


6.3 Copying Graphics Contexts

CLX provides functions to copy some or all attribute values from one graphics context to another. These functions are generally more efficient than using setf to copy gcontext attributes individually.

Function: copy-gcontext source destination
source

The source gcontext.

destination

The destination gcontext.

Copies all the values of the attributes of the source graphics context into the destination graphics context. The source and destination graphics contexts must have the same root and depth.

Function: copy-gcontext-components source destination &rest keys
source

The source gcontext.

destination

The destination gcontext.

keys

The remaining arguments are keywords, of type gcontext-key, which specify which attributes of the graphics context are to be copied.

Copies the values of the specified attributes of the source graphics context to the destination graphics context. The source and destination graphics contexts must have the same root and depth.