H5IMget_npalettes¶
- herr_t H5IMget_npalettes(hid_t loc_id, const char *image_name, hssize_t *npals)¶
H5IMget_npalettes gets the number of palettes associated to an image specified by image_name.
Synopsis: Gets the number of palettes associated to an image.
Parameters: - loc_id – IN: Identifier of the file or group in which the imagedataset is located.
- image_name – IN: The name of the image dataset.
- npals – OUT: The number of palettes.
Returns: Returns a non-negative value if successful; otherwise returns a negative value.
Fortran90 Interface: h5imget_npalettes_f
subroutine h5imget_npalettes_f(loc_id, dset_name, npals, errcode)
implicit none
integer(HID_T), intent(IN) :: loc_id ! file or group identifier
character(LEN=*), intent(IN) :: dset_name ! name of the dataset
integer(HSIZE_T), intent(INOUT) :: npals ! palettes
integer :: errcode ! error code
end subroutine h5imget_npalettes_f