Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

Color Impala::Core::Array::Element::Color::ToCMY (  )  const [inline]

To CMY.

Definition at line 116 of file Color.h.

References Impala::Core::Array::Element::CMY, Impala::Core::Array::Element::ColHSI2RGB(), Impala::Core::Array::Element::ColLab2XYZ(), Impala::Core::Array::Element::ColLuv2XYZ(), Impala::Core::Array::Element::ColOOO2RGB(), Color(), Impala::Core::Array::Element::ColRGB2CMY(), Impala::Core::Array::Element::ColXYZ2CMY(), Impala::Core::Array::Element::HSI, Impala::Core::Array::Element::Lab, Impala::Core::Array::Element::Luv, mSpace, mValue, Impala::Core::Array::Element::OOO, Impala::Core::Array::Element::RGB, and Impala::Core::Array::Element::XYZ.

Referenced by Convert().

00117     { 
00118         switch (mSpace) {
00119         case RGB:
00120             return Color(ColRGB2CMY(mValue), CMY);
00121         case CMY:
00122             return *this;
00123         case XYZ:
00124             return Color(ColXYZ2CMY(mValue), CMY);
00125         case Lab: {
00126             Vec3Real64 xyz = ColLab2XYZ(mValue);
00127             return Color(ColXYZ2CMY(xyz), CMY);
00128         }
00129         case Luv: {
00130             Vec3Real64 xyz = ColLuv2XYZ(mValue);
00131             return Color(ColXYZ2CMY(xyz), CMY);
00132         }
00133         case OOO: {
00134             Vec3Real64 rgb = ColOOO2RGB(mValue);
00135             return Color(ColRGB2CMY(rgb), CMY);
00136         }
00137         case HSI: {
00138             Vec3Real64 rgb = ColHSI2RGB(mValue);
00139             return Color(ColRGB2CMY(rgb), CMY);
00140         }
00141         }
00142 
00143         return Color();
00144     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:17:28 2011 for ImpalaSrc by  doxygen 1.5.1