All Manuals > CAPI User Guide and Reference Manual > 22 GRAPHICS-PORTS Reference Entries

with-graphics-transform Macro

Summary

Combines a given transform with the transform of a port for the duration of the macro.

Package

graphics-ports

Signature

with-graphics-transform (port transform) &body body => result

Arguments
port
A graphics port.
transform
body
A body of Lisp code.
Values
result
The return value of the last form executed in body.
Description

The macro with-graphics-transform combines the transform associated with port with transform while evaluating the forms of body as an implicit progn. port is given a new transform obtained by pre-multiplying its current transform with transform. This has the effect of preceding any translation, scaling and rotation operations specified in the body of the macro by those operations embodied in transform.

Notes

See graphics-state for details of how a transform is used.

Examples
(example-edit-file "capi/graphics/metafile-rotation")
See also

graphics-state
transform


CAPI User Guide and Reference Manual (Windows version) - 01 Dec 2021 19:34:15