A graphics port.
A keyword, or
function loads an image identified by
using the image load function registered with it. It returns an image object with the representation slot initialized. The
argument specifies a graphics port used to identify the library. It also specifies the resource in which colors are defined and if necessary allocated for the image. If
is in the table but the translation is not an external image, and the image loader returns an external image as the second value, that external image replaces the translation in the table. The default value of
can be an image, which is simply returned if it is a Plain Image or if
. Otherwise a new Plain Image object is returned, as described below.
The cache argument controls whether the image translation is cached. See the convert-external-image function for more details.
that the image is in a particular graphics format. Currently the only recognised value is
, which means the image is a Bitmap. Other values of
to load the image according to the file type of
denotes a file, as described for
. See the Graphics Ports chapter in the LispWorks
CAPI User Guide
for a discussion of image handling. The default value of
force-plain , if true, forces image to be a Plain Image suitable for use with the Image Access API. Given an image my-image , call
(load-image port my-image :force-plain t)
must already be created at the time
is called. If you need to delay loading the image, for example if you are computing the image dynamically, then you can call
of the interface or even in the first
of the pane.