VistaIOCreateImage(3) | Library Functions Manual | VistaIOCreateImage(3) |
VistaIOCreateImage, VistaIOCreateImageLike - allocate memory for an image
#include <vistaio.h>
VistaIOImage VistaIOCreateImage (nbands, nrows, ncolumns, pixel_repn)
int nbands, nrows, ncolumns; VistaIORepnKind pixel_repn;
VistaIOImage VistaIOCreateImageLike (src)
VistaIOCreateImage allocates memory for a new image with the specified properties. Fields of the new image structure are initialized, as are the image's row and band indices. Its pixel values, however, are not initialized. The new image is given an empty attribute list. The size of its frame band interpretation dimension (nframes) is set to nbands; its other band interpretation dimensions (nviewpoints, ncolors, and ncomponents) are set to 1.
VistaIOCreateImageLike allocates memory for a new image with the same properties as src (same pixel representation, and same numbers of bands, rows, and columns). Fields of the new image structure are initialized, as are the image's row and band indices. Its pixel values, however, are not initialized. The new image is given a copy of src's attribute list, and the sizes of its band interpretation dimensions (nframes, ..., ncomponents) are set identical to those of src.
If successful, these routines return a pointer to the newly-allocated image structure. Otherwise, ther return NULL
Art Pope <pope@cs.ubc.ca>
Adaption to vistaio: Gert Wollny <gw.fossdev@gmail.com>
24 April 1993 | VistaIO Version 1.2.14 |