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

make-image Function

Summary

Makes a new, empty, image object.

Package

graphics-ports

Signature

make-image port width height &key alpha => image

Arguments
port
A graphics port.
width
A positive integer.
height
A positive integer.
alpha
A generalized boolean.
Values
image
An image object.
Description

The function make-image makes a new blank, editable image object associated with port and of the given width and height.

On Windows and Cocoa, if alpha is true, then the image will have an alpha channel.

The initial pixels in image are undefined. image is editable, that is, it is suitable for use with the Image Access API. To set the pixels, see make-image-access.

See also

load-image
make-image-access


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