Routines (alphabetical) > Routines: H > HDF Routines > HDF_DFR8_SETPALETTE

# HDF_DFR8_SETPALETTE

The HDF_DFR8_SETPALETTE procedure sets the current palette to be used for subsequent images in an HDF file. The current palette will be used when adding images with the HDF_DFR8_ADDIMAGE routine.

## Syntax

HDF_DFR8_SETPALETTE, Palette

## Arguments

### Palette

A 768-element byte array of palette data. This array be a vector (e.g., `BYTARR(768)`) or a two-dimensional array (e.g., `BYTARR(3, 256)`).

Set the Palette array to the integer zero to set the current palette to no palette.

## Keywords

None

## Version History

4.0 | Introduced