This topic has not yet been rated - Rate this topic

GetGValue macro

Applies to: desktop apps only

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

Syntax

BYTE GetGValue(
  DWORD rgb
);

Parameters

rgb

Specifies an RGB color value.

Return value

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

Remarks

The intensity value is in the range 0 through 255.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Wingdi.h (include Windows.h)

See also

Colors Overview
Color Macros
GetBValue
GetRValue
PALETTEINDEX
PALETTERGB
RGB

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ