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>getrvalue()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetRValue()
Return the red component of a colour
------------------------------------------------------------------------------

Syntax
GetRValue( <nColour> )   -->   nRedValue

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

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

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

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


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

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