Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.11 KB

H5IMget_npalettes.rst

File metadata and controls

32 lines (23 loc) · 1.11 KB

H5IMget_npalettes

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.

param loc_id

IN: Identifier of the file or group in which the imagedataset is located.

param image_name

IN: The name of the image dataset.

param npals

OUT: The number of palettes.

return

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