Page tree









Attaches a palette to an image.

H5IM_LINK_PALETTE(loc_id, image_name, pal_name)

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

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

hid_t loc_idIN: Identifier of the file or group.
const char *image_name    IN: The name of the dataset to attach the palette to.
const char *pal_nameIN: The name of the palette.

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.

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

Coming Soon!

--- Last Modified: December 04, 2017 | 07:19 AM