Returns the four values of the currently collected drawing extremes.
graphics-ports
get-bounds pixmap-port => left, top, right, bottom
pixmap-port⇩ |
A graphics port. |
left⇩ |
An integer. |
top⇩ |
An integer. |
right⇩ |
An integer. |
bottom⇩ |
An integer. |
The function get-bounds
returns the four values left, top, right, bottom of the currently collected drawing extremes in pixmap-port. The values can be used to get an image from the port.
Drawing extremes are collected by passing non-nil for the collect or relative arguments to create-pixmap-port or with-pixmap-graphics-port.
(with-pixmap-graphics-port (p1 pane width height :relative t) (with-graphics-rotation (p1 0.123) (draw-rectangle p1 100 100 200 120 :filled t :foreground :red) (get-bounds p1)))
produces the following output:
72 112 285 255
create-pixmap-port
make-image-from-port
with-pixmap-graphics-port
CAPI User Guide and Reference Manual (Windows version) - 01 Dec 2021 19:34:15