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

int Impala::Application::VideoExcel::GridWindow::MarkToColor ( int  m  )  [inline, private]

Definition at line 475 of file GridWindow.h.

Referenced by DisplayFunc().

00476     {
00477         int r=127,g=127,b=127;
00478         if (m == -1)
00479             return ARGB2COLOR(255, 200, 200, 200);
00480         if (m & 1)
00481             r = g = b = 255;
00482 //        if (m & 2)
00483 //            r = g = b = 150;
00484         if (m & 4)
00485             r += 64;
00486         if (m & 8)
00487             g += 64;
00488         if (m & 16)
00489             b += 64;
00490         if (m & 32)
00491             { r += 64; g += 64; }
00492         if (m & 64)
00493             { g += 64; b += 64; }
00494         if (m & 128)
00495             { r += 64; b += 64; }
00496         if (r>255) r = 255;
00497         if (g>255) g = 255;
00498         if (b>255) b = 255;
00499         return ARGB2COLOR(255, r,g,b);
00500     }


Generated on Fri Mar 19 10:52:57 2010 for ImpalaSrc by  doxygen 1.5.1