Like with-graphics-translation except that the translation is done after applying all existing transforms.
The macro with-graphics-post-translation
is the same as with-graphics-translation, but the translation is done after applying all existing transforms. That means that the translation is "absolute", not transformed. In contrast, when using with-graphics-translation the translation is transformed by any existing transform(s).
This form draws a 40x40 rectangle at (100,100), because the scale is applied to the coordinates of the rectangle, but not to the translation.
(gp:with-graphics-scale (port 2 2)
(gp:with-graphics-post-translation (port 100 100)
(gp:draw-rectangle port 0 0 20 20)))
Compare with this form, using with-graphics-translation instead, which draws a 40x40 rectangle at (200,200), because the scale applies to the translation too:
(gp:with-graphics-scale (port 2 2)
(gp:with-graphics-translation (port 100 100)
(gp:draw-rectangle port 0 0 20 20)))
CAPI User Guide and Reference Manual (Unix version) - 25 Feb 2015