GetRGBValues (Function)

image\trumpet2.gif Disclaimer

A function that is used to get the component Red, Green, and Blue colors from an EasyLanguage RGB color value.

Syntax

GetRGBValues(BigRGBValue, oRedValue, oGreenValue, oBlueValue)

Returns

Returns the red, green, and blue values that make up the color indicated by BigRGBValue.  The separate red, green, and blue values are returned to the caller by reference.  

Parameters

Name

Type

Description

BigRGBValue

Numeric

Output variable returns a value representing one of 16 million color values.

oRedValue

Numeric

Output variable returns the Red portion of an EasyLanguage RGB color.

oGreenValue

Numeric

Output variable returns the Green portion of an EasyLanguage RGB color.

oBlueValue

Numeric

Output variable returns the Blue portion of an EasyLanguage RGB color.

Example

Returns the values of Red=0, Green=204, and Blue=56 for an EasyLanguage RGB color value of 3722240:

Value1 = GetRGBValues(3722240, oRedValue, oGreenValue, oBlueValue);