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

NextPrevUpTopContentsIndex

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

A 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 the graphics port port with transform during the body of the macro. The 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 (Unix version) - 25 Feb 2015

NextPrevUpTopContentsIndex