[Top] [Prev] [Next] [Bottom]

9.3 The Palette API

The DFP interface consists of eight routines. The routines DFPaddpal and DFPgetpal are the primary routines for palette I/O and are used for most reading and writing operations.

9.3.1 Palette Library Routines

All C functions in the palette interface are prefaced by "DFP" and the equivalent Fortran-77 functions are prefaced by "dp". These routines are divided into the following categories:

The DFP function calls are more explicitly defined in the following table and in the HDF Reference Guide.

TABLE 9A DFP Library Routines
Category

Routine Names

Description

C

Fortran-77

Write

DFPaddpal

dpapal

Appends a palette to a file.

DFPputpal

dpppal

Writes a palette to a file.

DFPwriteref

dpwref

Sets the reference number for writing the next palette.

Read

DFPgetpal

dpgpal

Retrieves the next palette in a file.

DFPreadref

dprref

Sets reference number for retrieving the next palette.

DFPlastref

dplref

Returns the value of the last reference number read or written.

DFPnpals

dpnpals

Returns the number of palettes in a file.

DFPrestart

dprest

Specifies that the next read call will get the first palette in the file.



[Top] [Prev] [Next] [Bottom]

hdfhelp@ncsa.uiuc.edu
HDF User's Guide - 06/04/97, NCSA HDF Development Group.