Binds a point transformed by a given ports transform to two variables across the body of the macro.
graphics-ports
with-transformed-point (new-x new-y port x y) &body body => result
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. |
result |
The return value of the last form executed in body. |
The macro with-transformed-point
transforms the point given by (x y) using port's transform and new-x and new-y are bound to the transformed point. The forms in body are then evaluated as an implicit progn with this binding.
CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:44