C: num_of_images = DFR8nimages(filename); FORTRAN: num_of_images = d8nimg(filename)
TABLE 6I DFR8nimages Parameter List
Routine Name (Fortran-77)
|
Parameter
|
Data Type
|
Description
| |
C
|
Fortran-77
| |||
DFR8nimages (d8nims)
|
filename
|
char *
|
character* (*)
|
Name of the HDF file.
|
The following calling sequence uses DFR8lastref to find the reference number of the 8-bit raster image most recently added to an HDF file:
C: status = DFR8addimage(filename, image, width, height, compress); lastref = DFR8lastref( );
FORTRAN: status = d8aimg(filename, image, width, height, compress) lastref = d8lref( )
DFR8putimage or DFR8getimage can be used instead of DFR8addimage with similar results.
6.6.3 Determining the Reference Number of the Palette of the Most-Recently-Accessed 8-Bit Raster Image: DFR8getpalref
DFR8getpalref returns the reference number of the palette associated with the most recently used in writing or reading an 8-bit raster image. The DFR8getdims routine must be called before DFR8getpalref, as DFR8getdims initializes internal structures required by DFR8getpalref.TABLE 6J DFR8nimages Parameter List
Routine Name (Fortran-77)
|
Parameter
|
Data Type
|
Description
| |
C
|
Fortran-77
| |||
DFR8getpalref
|
pal_ref
|
uint16 *
|
None
|
Pointer to the returned reference number of the palette.
|