HDF_DF24_GETINFO

The HDF_DF24_GETINFO procedure retrieves information about the current 24-bit HDF image.

Calling Sequence

HDF_DF24_GETINFO, Filename, Width, Height, Interlace

Arguments

Filename

A string containing the name of the file to be read.

Width

A named variable in which the width of the image is returned.

Height

A named variable in which the height of the image is returned.

Interlace

A named variable in which the interface method is returned. The returned value is 0 for pixel interlacing, 1 for scan-line interlacing, and 2 for scan-plane interlacing.

Example

h = HDF_OPEN('myhdf.hdf') ; Open the file myhdf.hdf; .

HDF_DF24_GETINFO, 'myhdf.hdf', width, height, interlace
; Return information about the 24-bit image.

HELP, width, height, interlace ; Print information about the returned variables. If the image were 536 by 412 pixels, and scan-line interlaced, IDL would print:
WIDTH LONG = 536
HEIGHT LONG = 412
INTERLACE LONG = 1

HDF_CLOSE('myhdf.hdf') ; Close the HDF file.

For a more detailed example, see the file hdf_info.pro , located in the examples subdirectory of the main IDL directory.

See Also

HDF_DF24_GETIMAGE , HDF_DF24_LASTREF , HDF_DF24_NIMAGES , HDF_DF24_READREF , HDF_DF24_RESTART