save-texture

Generic Function

Package: common-graphics

Arguments: texture texture-info filename

Creates a device-independent bitmap file (whose filename typically has extension .bmp) from a texture and an associated texture-info structure.

The arguments are as follows. texture is a two-dimensional array of pixel values. texture-info is a texture-info structure which is used to determine the colormap and bits-per-pixel for the texture file. The bits-per-pixel can be larger than is reflected by the element-type of the array; thus you can save a 4-bits-per-element array as an 8-bits-per-pixel .bmp file. filename is a string naming the complete pathname of the bitmap file to be created. This filename should typically have extension .bmp.

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.