Page tree

The license could not be verified: License Certificate has expired!

 

JAVA

FORTRAN

C++

C

 

Link

H5IM_GET_PALETTE

Gets the palette dataset.

Procedure:

H5IM_GET_PALETTE(loc_id, image_name, pal_number, pal_data)

Signature:

herr_t H5IMget_palette( hid_t loc_id, const char *image_name, int pal_number, unsigned char *pal_data )

subroutine h5imget_palette_f(loc_id, dset_name, pal_number, buf, 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, intent(IN) :: pal_number               ! palette number
  integer*1, intent(INOUT), dimension(*) :: buf   ! 1 byte integer data buffer 
  integer :: errcode                              ! error code
end subroutine h5imget_palette_f

Parameters:
hid_t loc_idIN: Identifier of the file or group in which the image dataset is located.
const char *image_nameIN: The name of the image dataset.
int pal_numberIN: The zero based index that identifies the palette.
unsigned char *pal_data    OUT: The palette dataset.

Description:

H5IMget_palette gets the palette dataset identified by pal_number (a zero based index) associated to an image specified by image_name.

Returns:

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

Example:

Coming Soon!

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