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 RgbColor16i::asRgbColor (DataModelAttributes::ChannelOrder fmt) const
{
#define CVTC(x) ((Data8)(((x) / 65535.0) * 255.0))
#define CVTS(x) ((Data8) ((x) == 65535 ? 255 : ((int) (((x) / 65535.0) * 255.0))))
    RgbColor color;
    if (DataModelAttributes::kRedGreenBlueAlpha == fmt) {
        color = RgbColor(CVTC(rgba.red),CVTC(rgba.green),CVTC(rgba.blue),CVTS(rgba.alpha));
    }
    else {
        color = RgbColor(CVTC(bgra.red),CVTC(bgra.green),CVTC(bgra.blue),CVTS(bgra.alpha));
    }
    return color;
}
inline RgbColor RgbColor16i :: asRgbColor ( DataModelAttributes :: ChannelOrder fmt ) const { #define CVTC ( x )  ((Data8)(((x) / 65535.0) * 255.0))
 #define CVTS ( x )  ((Data8) ((x) == 65535 ? 255 : ((int) (((x) / 65535.0) * 255.0))))
 RgbColor color ; if ( DataModelAttributes :: kRedGreenBlueAlpha == fmt ) { color = RgbColor ( CVTC ( rgba . red ) , CVTC ( rgba . green ) , CVTC ( rgba . blue ) , CVTS ( rgba . alpha ) ) ; } else { color = RgbColor ( CVTC ( bgra . red ) , CVTC ( bgra . green ) , CVTC ( bgra . blue ) , CVTS ( bgra . alpha ) ) ; } return color ; }
<summary>
This inlined method is defined in RgbColor.h.
<summary > This inlined method is defined in RgbColor . h .