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

NextPrevUpTopContentsIndex

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:register-image-translation
 'info-image
  (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 (Macintosh version) - 22 Dec 2009

NextPrevUpTopContentsIndex