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 RgbColor RgbColor10::asRgbColor (DataModelAttributes::ChannelOrder fmt) const
{
    Data16 red, green, blue, alpha;
    green = (Data16) ((packed >> 10) & 0x03FF);
    alpha = (Data16) ((packed >> 30) & 0x03);
    if (fmt == DataModelAttributes::kRedGreenBlueAlpha) {
        red = (Data16) (packed & 0x03FF);
        blue = (Data16) ((packed >> 20) & 0x03FF);
    }
    else {
        blue = (Data16) (packed & 0x03FF);
        red = (Data16) ((packed >> 20) & 0x03FF);
    }
#define CVTC(x) ((Data8) (((x) / 1023.0) * 255))
#define CVTA(x) ((Data8) (((x) / 3.0) * 255))
    RgbColor colorRgb(CVTC(red), CVTC(green), CVTC(blue), CVTA(alpha));
    return colorRgb;
}
inline RgbColor RgbColor10 :: asRgbColor ( DataModelAttributes :: ChannelOrder fmt ) const { Data16 red , green , blue , alpha ; green = ( Data16 ) ( ( packed >> 10 ) & 0x03FF ) ; alpha = ( Data16 ) ( ( packed >> 30 ) & 0x03 ) ; if ( fmt == DataModelAttributes :: kRedGreenBlueAlpha ) { red = ( Data16 ) ( packed & 0x03FF ) ; blue = ( Data16 ) ( ( packed >> 20 ) & 0x03FF ) ; } else { blue = ( Data16 ) ( packed & 0x03FF ) ; red = ( Data16 ) ( ( packed >> 20 ) & 0x03FF ) ; } #define CVTC ( x )  ((Data8) (((x) / 1023.0) * 255))
 #define CVTA ( x )  ((Data8) (((x) / 3.0) * 255))
 RgbColor colorRgb ( CVTC ( red ) , CVTC ( green ) , CVTC ( blue ) , CVTA ( alpha ) ) ; return colorRgb ; }
<summary>
This inlined method is defined in RgbColor.h.
<summary > This inlined method is defined in RgbColor . h .