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


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: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 (Macintosh version) - 30 Aug 2011