[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  nRGB( nRed, nGreen, nBlue ) ->  <nRGBValue>
------------------------------------------------------------------------------


 PARAMETER:

  <nRed>    Is the red component of the color within the range 0 - 255

  <nGreen>  Is the green component of the color within the range 0 - 255

  <nBlue>   Is the blue component of the color within the range 0 - 255


 RETURNS:

  <nRGBValue> is a long Integer representing a windows RGB color number.



 DESCRIPTION:

  This function converts the three colors into a composite color format,
  which is used by windows to represent a color.
  Whenever possible, we recommend that you use the preprocessor pseudo-
  function RGB() instead of using nRGB(), and let the conversion
  take place at compile time :


     +-------------------------------------------------------------+
     |  /* PPO Command RGB()     */                                |
     |                                                             |
     | #translate RGB( <nRed>, <nGreen>, <nBlue> ) => ;            |
     |               ( <nRed>  + ;                                 |
     |               ( <nGreen> * 256 ) + ;                        |
     |               ( <nBlue>  * 65536 ))                         |
     +-------------------------------------------------------------+


 SOURCE:

  SOURCE\WINAPI\RGB.C



See Also: nGetBackRGB nGetForeRGB
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson