HDF5 API Reference
  • HDF5 Image (H5IM)
    • Image Functions
    • Palette Functions
  • HDF5 Table (H5TB)
    • Creation
    • Storage
    • Modification
    • Retrieval
    • Query
 
HDF5 API Reference
  • Docs »
  • HDF5 Image (H5IM) »
  • H5IMlink_palette
  • Edit on GitHub

H5IMlink_palette¶

herr_t H5IMlink_palette(hid_t loc_id, const char *image_name, const char *pal_name)¶

H5IMlink_palette attaches a palette named pal_name to an image specified by image_name. The image dataset may or not already have an attached palette. If it has, the array of palette references is extended to hold the reference to the new palette.

Synopsis:

Attaches a palette to an image.

Parameters:
  • loc_id – IN: Identifier of the file or group.
  • image_name – IN: The name of the dataset to attach the palette to.
  • pal_name – IN: The name of the palette.
Returns:

Returns a non-negative value if successful; otherwise returns a negative value.

Fortran90 Interface: h5imlink_palette_f

subroutine h5imlink_palette_f(loc_id, dset_name, pal_name, errcode)
  implicit none
  integer(HID_T), intent(IN) :: loc_id          ! file or group identifier
  character(LEN=*), intent(IN) :: dset_name     ! name of the dataset
  character(LEN=*), intent(IN) :: pal_name      ! palette name
  integer :: errcode                            ! error code
end subroutine h5imlink_palette_f
Next Previous

© Copyright 2014, The HDF Group.

Built with Sphinx using a theme provided by Read the Docs.