Combines a transformation (rotation, scaling or translation) with the transform of a port for the duration of the macro.
with-graphics-rotation ( port angle ) &body body => result
with-graphics-scale ( port sx sy ) &body body => result
with-graphics-translation ( port dx dy ) &body body => result
These macros combine the transform associated with the graphics port with an additional transform during the body of the macro. The port is given a new transform obtained by pre-multiplying its current transform with the transform that the macro creates.
with-graphics-rotation
creates a transformation that rotates with
angle
radians. If
angle
is positive, then the rotation is clockwise.
with-graphics-scale
creates a transformation that scales by
sx
and
sy
in the X and Y dimensions.
with-graphics-translation
creates a transformation that translates by
dx
and
dy
in the X and Y dimensions.
graphics-state
with-graphics-post-translation
with-graphics-transform
Graphics state transforms
Setting the graphics state
CAPI User Guide and Reference Manual (Windows version) - 3 Aug 2017