RGBComp( )

Microsoft Visual FoxPro Foxtools

RGBComp( )

Returns the red, green, and blue components of a composite RGB color value.

Syntax

RGBComp( nRGBColor, @nRedVal, @nGreenVal, @nBlueVal )

nRGBColor

Specifies a composite RGB color value ranging from 0 to 16777215.

@nRedVal

Specifies a reference to a variable in which the function returns the intensity of the red color component of nRGBColor.

@nGreenVal

Specifies a reference to a variable in which the function returns the intensity of the green color component of nRGBColor.

@nBlueVal

Specifies a reference to a variable in which the function returns the intensity of the blue color component of nRGBColor.

Return Type

Logical