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

make-scaled-sub-image Function

Summary

Makes a new image from a scaled part of an image.

Package

graphics-ports

Signature

make-scaled-sub-image port image to-width to-height &key from-x from-y from-width from-height => sub-image

Arguments
port
A graphics port.
image
An image.
to-width
An integer.
to-height
An integer.
from-x
An integer.
from-y
An integer.
from-width
An integer.
from-height
An integer.
Values
sub-image
An image.
Description

The function make-scaled-sub-image makes a new image from the scaled rectangular region of image specified by from-x, from-y, from-width and from-height. The returned sub-image is associated with port and has size specified by to-width and to-height.

The default values of from-x and from-y are 0.

The default value of from-width is the width of image.

The default value of from-height is the height of image.

When from-width equals to-width and from-height equals to-height, then this function is equivalent to make-sub-image.

See also

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


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