DirectX SDK

RGB_GETRED

The RGB_GETRED macro retrieves the red component of a D3DCOLOR value.

RGB_GETRED(rgb)    (((rgb) >> 16) & 0xff) 

Parameters

rgb
Color index from which the red component is retrieved.

Return Values

Returns the red component.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 SP3 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Version: Requires DirectX 2.0 or later.
  Header: Declared in d3dtypes.h.