GetGValue function

int GetGValue(
  1. int rgb
)

Retrieves an intensity value for the green component of a red, green, blue (RGB) value.

Implementation

//
// #define GetGValue(rgb)      (LOBYTE(((WORD)(rgb)) >> 8))
int GetGValue(int rgb) => LOBYTE(rgb >> 8);