The function make-image-from-port
makes an image out of the specified rectangle of the port's contents. The default is the whole port, but a region can be specified using
x, y, width,
and
height
. The default value of
x
and
y
is 0.
Normally the image is freed automatically, when port is destroyed. However there are circumstances where you need to explicitly free an image, for example when you want it to go away before the port. If the image is not freed, a memory leak occurs.
CAPI User Guide and Reference Manual (Unix version) - 25 Feb 2015