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

make-sub-image Function

Summary

Makes a new image from part of an image.

Package

graphics-ports

Signature

make-sub-image port image &optional x y width height => sub-image

Arguments
port
A graphics port.
image
An image.
An integer.
An integer.
width
An integer.
height
An integer.
Values
sub-image
An image.
Description

The function make-sub-image makes a new image object from the rectangular region of the supplied image specified by x, y, width and height, for use with port.

The default values of x and y are 0.

The default value of width is the width of image.

The default value of height is the height of image.

See also

image
make-scaled-sub-image
13 Drawing - Graphics Ports
17 Drag and Drop


CAPI User Guide and Reference Manual (Windows version) - 01 Dec 2021 19:34:15