11.8 Working with images

Graphics Ports supports drawing a wide range of image types via your code. Also, several CAPI classes support the same image types.

To draw an image with Graphics Ports, you need an image object which is associated with an instance of capi:output-pane (or a subclass of this). You can create a image object from:

Draw the image to the pane by calling draw-image . Certain images ("Plain Images") can be manipulated via the Image Access API. The image should be freed by calling free-image when you are done with it.

capi:image-pinboard-object , capi:button , capi:list-view , capi:tree-view and capi:toolbar all support images. These classes handle the drawing and freeing for you.

11.8.1 Supported image types

11.8.2 External images

11.8.3 Registering images

11.8.4 Loading images

11.8.5 Drawing images

11.8.6 Image access

LispWorks CAPI User Guide (Unix version) - 8 Apr 2005