GINO Graphics Suite - GINO v9.0  

gEnqColourInfo

Syntax

[C/C++:]
void gEnqColourInfo(int *ndc, int *ndt);
[F90:]
subroutine gEnqColourInfo(ndc, ndt)
integer, intent(out) :: ndc,ndt

Arguments

ndc
Number of colours that can be separately defined or selected

= 0, Monochrome device
= 1, Monochrome device with background erase
> 1, Colour/greyscale device

ndt
Display type, identifying the colour/greyscale capabilities of the device:

= 0, No colour/greyscale variation (i.e. Monochrome)
= 1, Fixed colour/greyscale (i.e. no gDefineRGB() facilities)
= 2, Static colour/greyscale (i.e. selection from fixed palette)
= 3, Dynamic colour/greyscale
= 4, Direct colour/greyscale
N.B. Positive values indicate colour display, negative values indicate greyscale

Description

The routine gEnqColourInfo() returns in ndc and ndt information about the device's current colour and greyscale capabilities. In general, a device can only display a finite number of colours/greyscales. The number of colours/greyscales that can be defined (see gDefineRGB()) and selected (see gSetLineColour()) is returned in ndc. If ndc is set to zero, the device cannot display any colours.

ndt returns information about the colour/greyscale capabilities of the device: ndt= 0 for monochrome displays; = 1 for displays with fixed colours/greyscales which cannot be changed with gDefineRGB(); = 2 for displays with a palette but may not provide exactly the colour requested with gDefineRGB(); = 3 for dynamic colour/greyscale devices and = 4 for direct colour/greyscale devices. Negative values indicate greyscale rather than colour display.

See Also

gEnqColourInfo Usage
gSetLineColour
gDefineRGB