windows_programming_notes.nbk: Home | Index | Next Page: GetCapture | Previous Page: GET_WM_COMMAND_ID


 GetBValue

The GetRValue macro retrieves an intensity value for the red component of a red, green, blue (RGB) value.

    BYTE GetRValue( 
      DWORD rgb  // RGB value
    );

Parameters

Return Values

The return value is the intensity of the red component of the specified RGB color.

Remarks

The intensity value is in the range 0 through 255.

Requirements


windows_programming_notes.nbk: Home | Index | Next Page: GetCapture | Previous Page: GET_WM_COMMAND_ID


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time