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

INQUIRE COLOR MODEL (PHOP,WSOP,*,*)

Purpose

Use Inquire Color Model to inquire the current color model for the specified 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_colr_model (ws_id, err_ind, model)

Input Parameters

Pint ws_id
Workstation identifier.

Output Parameters

Pint *err_ind
Error indicator.

Pint *model
Current color model (1=PMODEL_RGB, 2=PMODEL_CIELUV, 3=PMODEL_HSV).

FORTRAN

PQCMD (wkid, errind, cmodel)

Input Parameters

integer wkid
Workstation identifier.

Output Parameters

integer errind
Error indicator.

integer cmodel
Current color model (1=PRGB, 2=PCIE, 3=PHSV).

Errors

None

Related Subroutines

  • Inquire Color Model Facilities

  • Set Color Model


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