//////////////////////////////////////////////////////////////////////////////////////////////
        //
        //  rB_Direct3D_CheckedChanged
        //
        //////////////////////////////////////////////////////////////////////////////////////////////
        private void rB_Direct3D_CheckedChanged(object sender, EventArgs e)
        {
            if (rB_Direct3D.Checked)
            {
                rB_Vsync_user.Enabled        = true;
                cB_Overlay_from_file.Enabled = true;
                cB_Scale_image.Enabled       = true;
                cB_Semi_transparent.Enabled  = false;
                nuSyncUpDown.Enabled         = rB_Vsync_user.Checked;

                uEye.Defines.DisplayMode displayMode = uEye.Defines.DisplayMode.Direct3D;

                if (cB_Mono.Checked)
                {
                    displayMode |= uEye.Defines.DisplayMode.Mono;
                }

                m_Camera.Display.Mode.Set(displayMode);

                // set key color
                m_Camera.DirectRenderer.Overlay.SetKeyColor(m_OverlayColor);

                // update overlay information
                UpdateOverlayInformation();
            }

            cB_Scale_image_and_overlay.Checked = false;
            cB_Scale_image.Checked             = false;
            cB_Show_overlay.Checked            = false;
            cB_Show_moving_overlay.Checked     = false;
            cB_Overlay_from_file.Checked       = false;
            cB_Semi_transparent.Checked        = false;
        }
Esempio n. 2
0
        private void radioButtonDisplayDIB_CheckedChanged(object sender, EventArgs e)
        {
            if (radioButtonDisplayDIB.Checked && radioButtonDisplayDIB.Focused)
            {
                uEye.Defines.Status      statusRet;
                uEye.Defines.DisplayMode displayMode = uEye.Defines.DisplayMode.DiB;

                statusRet = m_Camera.Display.Mode.Set(displayMode);

                // inform our main form
                if (DisplayChanged != null)
                {
                    DisplayChanged(this, EventArgs.Empty);
                }
            }
        }