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

write-external-image Function

Summary

Writes external image data to a file.

Package

graphics-ports

Signature

write-external-image external-image destination &key if-exists

Arguments
external-image
destination
A pathname designator.
if-exists
A keyword.
Description

The function write-external-image writes external-image to destination. If destination is a stream, it must be an output stream with element type compatible with (unsigned-byte 8), that is one of cl:base-char, (signed-byte 8) and (unsigned-byte 8). If destination is a pathname or namestring the file is opened for output with the correct element type, and write-external-image writes the bytes to the resulting stream as if by cl:write-sequence.

if-exists is passed to open when opening file. The default value of if-exists is :error.

See also

externalize-image
13.10.3 External images


CAPI User Guide and Reference Manual (Unix version) - 01 Dec 2021 19:33:02