public FPSTimer(MainForm mf) { form = mf; QueryPerformanceFrequency(out freq); fps = 0; QueryPerformanceCounter(out last); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); PXCMSession session = PXCMSession.CreateInstance(); if (session != null) { // Optional steps to send feedback to Intel Corporation to understand how often each SDK sample is used. PXCMMetadata md = session.QueryInstance<PXCMMetadata>(); if (md != null) { string sample_name = "Face Viewer CS"; md.AttachBuffer(1297303632, System.Text.Encoding.Unicode.GetBytes(sample_name)); } MainForm form = new MainForm(session); form.WindowState = FormWindowState.Normal; form.FormBorderStyle = FormBorderStyle.None; form.WindowState = FormWindowState.Maximized; Application.Run(form); session.Dispose(); } }
public FaceTracking(MainForm form) { m_form = form; }