[Back to Interface] [Prev] [Next]

DF24putimage/d2pimg

intn DF24putimage(char *filename, VOIDP image, int32 width, int32 height)

filename IN:

Name of the file

image IN:

Pointer to the image array

width IN:

Number of columns in the image

height IN:

Number of rows in the image

Purpose

Writes a 24-bit image as the first image in the file.

Return value

Returns SUCCEED (or 0) if successful and FAIL (or -1) otherwise.

Description

The array image is assumed to be width x height x 3 bytes. DF24putimage overwrites any information that exists in the HDF file. To append a new image to a file instead of overwriting an existing file, use DF24addimage.

FORTRAN

integer function d2pimg(filename, image, width, height)

character*(*) filename

<valid numeric data type> image

integer width, height



[Back to Interface] [Prev] [Next]

hdfhelp@ncsa.uiuc.edu
HDF Reference Manual - 07/29/98, NCSA HDF Development Group.