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

NextPrevUpTopContentsIndex

with-transformed-point

Macro
Summary

Binds a point transformed by a given ports transform to two variables across the body of the macro.

Package

graphics-ports

Signature

with-transformed-point ( new-x new-y port x y ) &body body
=> result

Arguments

new-x

A variable.

new-y

A variable.

port

A graphics port.

x

A real number.

y

A real number.

body

A body of Lisp code.

Values

result

The return value of the last form executed in body .

Description

The macro with-transformed-point transforms the point given by ( x y ) using the port 's transform and the resulting values are bound to the new-x and new-y variables. The body of the macro is then evaluated with this binding.


CAPI User Guide and Reference Manual (Windows version) - 3 Aug 2017

NextPrevUpTopContentsIndex