LispWorks CAPI User Guide > 12 Graphics Ports > 12.8 Working with images


12.8.3 Registering images

One way to load an image is via a registered image identifier.

To establish a registered image identifer call register-image-translation :

  (gp:read-external-image "info.bmp"
                          :transparent-color-index 7))

You can then do:

(gp:load-image port 'info-image)

to obtain the image object.

LispWorks CAPI User Guide (Unix version) - 22 Dec 2009