2015/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 void RgbColor5b::getChannelData (Data8& red, Data8& green, Data8& blue, Data8& alpha
    , DataModelAttributes::BitFields fields, DataModelAttributes::ChannelOrder fmt) const
{
    if (fields == DataModelAttributes::k5551) {
        green = (Data8) ((packed >> 5) & RgbModelAttributes::kLowMask);
        alpha = (Data8) ((packed & RgbModelAttributes::kAlphaMask) >> 15);
        if (fmt == DataModelAttributes::kRedGreenBlueAlpha) {
            red = (Data8) (packed & RgbModelAttributes::kLowMask);
            blue = (Data8) ((packed >> 10) & RgbModelAttributes::kLowMask);
        }
        else  {
            blue = (Data8) (packed & RgbModelAttributes::kLowMask);
            red = ((Data8) (packed >> 10) & RgbModelAttributes::kLowMask);
        }
    }
    else if (fields == DataModelAttributes::k565) {
        green = (Data8) ((packed & RgbModelAttributes::kMidMask565) >> 5);
        if (fmt == DataModelAttributes::kRedGreenBlueAlpha) {
            red = (Data8) (packed & RgbModelAttributes::kLowMask);
            blue = (Data8) ((packed >> 11) & RgbModelAttributes::kLowMask);
        }
        else  {
            blue = (Data8) (packed & RgbModelAttributes::kLowMask);
            red = (Data8) ((packed >> 11) & RgbModelAttributes::kLowMask);
        }
    }
}
inline void RgbColor5b :: getChannelData ( Data8 & red , Data8 & green , Data8 & blue , Data8 & alpha , DataModelAttributes :: BitFields fields , DataModelAttributes :: ChannelOrder fmt ) const { if ( fields == DataModelAttributes :: k5551 ) { green = ( Data8 ) ( ( packed >> 5 ) & RgbModelAttributes :: kLowMask ) ; alpha = ( Data8 ) ( ( packed & RgbModelAttributes :: kAlphaMask ) >> 15 ) ; if ( fmt == DataModelAttributes :: kRedGreenBlueAlpha ) { red = ( Data8 ) ( packed & RgbModelAttributes :: kLowMask ) ; blue = ( Data8 ) ( ( packed >> 10 ) & RgbModelAttributes :: kLowMask ) ; } else { blue = ( Data8 ) ( packed & RgbModelAttributes :: kLowMask ) ; red = ( ( Data8 ) ( packed >> 10 ) & RgbModelAttributes :: kLowMask ) ; } } else if ( fields == DataModelAttributes :: k565 ) { green = ( Data8 ) ( ( packed & RgbModelAttributes :: kMidMask565 ) >> 5 ) ; if ( fmt == DataModelAttributes :: kRedGreenBlueAlpha ) { red = ( Data8 ) ( packed & RgbModelAttributes :: kLowMask ) ; blue = ( Data8 ) ( ( packed >> 11 ) & RgbModelAttributes :: kLowMask ) ; } else { blue = ( Data8 ) ( packed & RgbModelAttributes :: kLowMask ) ; red = ( Data8 ) ( ( packed >> 11 ) & RgbModelAttributes :: kLowMask ) ; } } }
<summary>
This inlined method is defined in RgbColor.h.
<summary > This inlined method is defined in RgbColor . h .