Next Previous Up Top Contents Index

2 GP Reference Entries

get-bounds

Function

Summary

Returns the four values of the currently collected drawing extremes.
Signature

get-bounds pixmap-port => left top right bottom

Arguments

pixmap-port

A graphics port

Values

left

An integer

top

An integer

right

An integer

bottom

An integer

Description

Theget-bounds functions returns the four values left, top, right, bottom of the currently collected drawing extremes. The values can be used to get an image from the port.
Example

(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 

See also

make-image-from-port

LispWorks CAPI Reference Manual - 17 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker