Writes external image data to a file.
graphics-ports
write-external-image external-image destination &key if-exists
external-image⇩ |
An external-image. |
destination⇩ |
A pathname designator. |
if-exists⇩ |
A keyword. |
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
.
CAPI User Guide and Reference Manual (Unix version) - 01 Dec 2021 19:33:02