Function GraIsRGBColor() Foundation

Checks if a numeric value is a valid RGB color value.

Syntax
GraIsRGBColor( <nColor> ) --> lIsRGBColor
Parameters
<nColor>
The parameter is a numeric value. It can be a RGB color value or a color index as used for the :setColorIndex() method of the XbpPresSpace() class.
Return

The function returns .T. (true) if the passed parameter is a valid RGB color value, otherwise .F. (false) is returned.

Description

The function is used to check if a numeric value is equivalent to a RGB color value. This is useful to determine whether a given color is defined via color intensities or as a color index. RGB colors are calculated from color intensities by the function GraMakeRGBColor(). Note that GraIsRGBColor() tests only if the passed parameter is a valid RGB color value, it does not check whether or not the corresponding color is available. Use the :mapColor() method of the XbpPresSpace() class to test if a color can be displayed.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.