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

NextPrevUpTopContentsIndex

13.9.6 Querying image dimensions

To obtain the pixel dimensions of an image, load the image using load-image and then use the readers image-width and image-height . The first argument to load-image must be a pane in a displayed interface.

To query the dimensions before displaying anything you can create and "display" an interface made with the :display-state :hidden initarg. Call load-image with this hidden interface and your external-image object, and then use the readers image-width and image-height .


CAPI User Guide (Unix version) - 30 Aug 2011

NextPrevUpTopContentsIndex