All Manuals > CAPI User Guide and Reference Manual > 22 GRAPHICS-PORTS Reference Entries

external-image-color-table Accessor

Summary

Returns a vector containing RGB color specifications of an external image.

Package

graphics-ports

Signature

external-image-color-table external-image => color-table

setf (external-image-color-table external-image) color-table => color-table

Arguments
external-image
color-table
A color table.
Values
color-table
A color table.
Description

The accessor external-image-color-table gets and sets a vector containing RGB color specifications representing the color table as specified in external-image.

external-image must be a plain external-image. See 13.10 Working with images for details.

If the result is nil, the external image is a 24-bit DIB, with the colors defined in each pixel instead of through a table.

When setting the color-table of an external image, the new color-table must be the same length as the external image's original color table.


CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:44