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

# HDF_GR_WRITELUT

This function writes a palette with the specified palette data and identifier. The palette data itself is stored in the pal_data variable.

## Syntax

Result = HDF_GR_WRITELUT( pal_id, pal_data )

## Return Value

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

## Arguments

### pal_id

Palette identifier returned by HDF_GR_GETLUTID.

### pal_data

Palette data to be written.

## Keywords

None

## Version History

5.2 | Introduced