All Manuals > CAPI User Guide > 13 Graphics Ports > 13.9 Working with images

NextPrevUpTopContentsIndex

13.9.4 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.


CAPI User Guide (Unix version) - 30 Aug 2011

NextPrevUpTopContentsIndex