Exemple #1
0
static uint32_t
GreyscaleToRGB8(Luminosity8 luminosity)
{
  const unsigned value = luminosity.GetLuminosity();

  return value | (value << 8) | (value << 16) | (value << 24);
}
Exemple #2
0
 constexpr uint8_t GetLuminosity() const {
   return luminosity.GetLuminosity();
 }