stretch-mode

Generic Function

Package: common-graphics

Arguments: window

Returns or sets with setf the stretch mode of window. The stretch mode determines how pixels are combined when using copy-pixels-to-stream to draw a pixmap on window such that the image is smaller in at least one direction. In that case, at least some pixels in the original image will map to a single displaced pixel. The stretch mode determines the color of those pixels.

The mode are:

:black-on-white performs a Boolean AND operation using the color values for the eliminated and existing pixels. If the bitmap is a monochrome bitmap, this mode preserves black pixels at the expense of white pixels.

:white-on-black performs a Boolean OR operation using the color values for the eliminated and existing pixels. If the bitmap is a monochrome bitmap, this mode preserves white pixels at the expense of black pixels.

:color-on-color deletes the pixels. This mode deletes all eliminated lines of pixels without trying to preserve their information.

:halftone maps pixels from the source rectangle into blocks of pixels in the destination rectangle. The average color over the destination block of pixels approximates the color of the source pixels.

Common Graphics and IDE documentation is described in About Common Graphics and IDE documentation in cgide.htm.

The documentation is described in introduction.htm and the index is in index.htm.

Copyright (c) 1998-2000, Franz Inc. Berkeley, CA., USA. All rights reserved.

Created 2000.10.5.