Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>getgvalue()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetGValue()
Return the green component of a colour
------------------------------------------------------------------------------

Syntax
GetGValue( <nColour> )   -->   nGreenValue

Arguments
<nColour> is a colour value (such as those produced by the
RGB() macro).

Returns
The returned value is the green part of the colour, and is an
integer in the range 0-255.  Zero (0) corresponds to no green
component, and 255 to a solid green.

Description
In Windows, colours are described by their red/green/blue
(RGB) components.  This function picks out the green component
of a colour.

Example
? GetGValue( RGB( 201, 202, 203 ) )     // Result: 202


See Also: GetBValue() GetBkColor() GetNearestColor() GetRValue() GetTextColor() RGB() SetBkColor() SetTextColor()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson