2014/utils/Atil/Inc/RgbColor.inl
/// <summary>
/// This inlined method is defined in RgbColor.h. <see cref="RgbColor">
/// </summary>
///


This inlined method is defined in RgbColor.h.
This inlined method is defined in RgbColor . h .
inline RgbColor5b::RgbColor5b (Data8 first, Data8 second, Data8 third, Data8 alpha
    , DataModelAttributes::BitFields fields)
{
    if (fields == DataModelAttributes::k5551) {
        packed = (Data16) ((first & RgbModelAttributes::kLowMask) 
            | ((second & RgbModelAttributes::kLowMask) << 5) 
            | ((third & RgbModelAttributes::kLowMask)<<10) 
            | ((alpha != 0) ? RgbModelAttributes::kAlphaMask : 0));
    }
    else if (fields == DataModelAttributes::k565) {
        packed = (Data16) ((first & RgbModelAttributes::kLowMask) 
            | ((second << 5) & RgbModelAttributes::kMidMask565) 
            | ((third & RgbModelAttributes::kLowMask)<<11));
    }
}
inline RgbColor5b :: RgbColor5b ( Data8 first , Data8 second , Data8 third , Data8 alpha , DataModelAttributes :: BitFields fields ) { if ( fields == DataModelAttributes :: k5551 ) { packed = ( Data16 ) ( ( first & RgbModelAttributes :: kLowMask ) | ( ( second & RgbModelAttributes :: kLowMask ) << 5 ) | ( ( third & RgbModelAttributes :: kLowMask ) << 10 ) | ( ( alpha != 0 ) ? RgbModelAttributes :: kAlphaMask : 0 ) ) ; } else if ( fields == DataModelAttributes :: k565 ) { packed = ( Data16 ) ( ( first & RgbModelAttributes :: kLowMask ) | ( ( second << 5 ) & RgbModelAttributes :: kMidMask565 ) | ( ( third & RgbModelAttributes :: kLowMask ) << 11 ) ) ; } }
<summary>
This inlined method is defined in RgbColor.h.
<summary > This inlined method is defined in RgbColor . h .
// Using the kLowMask effectively cuts the values into range. 
 // Using the kLowMask effectively cuts the values into range. 
