[ Previous | Next | Contents | Glossary | Home | Search ]
The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference

INQUIRE LIST OF COLOR INDICES (PHOP,WSOP,*,*)

Purpose

Use Inquire List of Color Indices to inquire the list of color indexes existing on the workstation.

If the information is available, then the graPHIGS API sets the error indicator to zero and returns the values in the output parameters. If the information is unavailable, then the values returned in the output parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:

3
Function Requires State (PHOP,WSOP,*,*)
54
Specified Workstation Is Not Open
59
Specified Workstation Does Not Have Output Capability

Language Bindings

C

pinq_list_colr_inds (ws_id, num_elems_appl_list, start_ind, err_ind, colr_ind, num_elems_impl_list)

Input Parameters

Pint ws_id
Workstation identifier.

Pint num_elems_appl_list
Number of elements in the application list (>=0).

Pint start_ind
Starting index (>=0).

Output Parameters

Pint *err_ind
Error indicator.

Pint_list *colr_ind
List of color indexes.

Pint *num_elems_impl_list
Number of elements in the implementation list.

FORTRAN

PQECI (wkid, n, errind, ol, coli)

Input Parameters

integer wkid
Workstation identifier.

integer n
List element requested (>=0).

Output Parameters

integer errind
Error indicator.

integer ol
Number of color table entries.

integer coli
nth element in the list of color indexes.

Errors

None

Related Subroutines

  • Set Color Representation


  • [ Previous | Next | Contents | Glossary | Home | Search ]