Пример #1
0
        private void m_sliderBrightness_Scroll(object sender, EventArgs e)
        {
            int n_property_value = m_sliderBrightness.Value;

            m_staticBrightness.Text = n_property_value.ToString();

            if (m_hCapDev[0] != 0x00000000)
            {
                EXPORTS.QCAP_SET_VIDEO_BRIGHTNESS(m_hCapDev[0], (uint)n_property_value);
            }

            if (m_hCapDev[1] != 0x00000000)
            {
                EXPORTS.QCAP_SET_VIDEO_BRIGHTNESS(m_hCapDev[1], (uint)n_property_value);
            }

            if (m_hCapDev[2] != 0x00000000)
            {
                EXPORTS.QCAP_SET_VIDEO_BRIGHTNESS(m_hCapDev[2], (uint)n_property_value);
            }

            if (m_hCapDev[3] != 0x00000000)
            {
                EXPORTS.QCAP_SET_VIDEO_BRIGHTNESS(m_hCapDev[3], (uint)n_property_value);
            }
        }
Пример #2
0
        private void btnDefault_Click(object sender, EventArgs e)
        {
            EXPORTS.QCAP_SET_VIDEO_BRIGHTNESS(m_hCapDev[0], 128);

            EXPORTS.QCAP_SET_VIDEO_BRIGHTNESS(m_hCapDev[1], 128);

            EXPORTS.QCAP_SET_VIDEO_BRIGHTNESS(m_hCapDev[2], 128);

            EXPORTS.QCAP_SET_VIDEO_BRIGHTNESS(m_hCapDev[3], 128);

            m_sliderBrightness.Value = 128;

            m_staticBrightness.Text = "128";

            EXPORTS.QCAP_SET_VIDEO_CONTRAST(m_hCapDev[0], 128);

            EXPORTS.QCAP_SET_VIDEO_CONTRAST(m_hCapDev[1], 128);

            EXPORTS.QCAP_SET_VIDEO_CONTRAST(m_hCapDev[2], 128);

            EXPORTS.QCAP_SET_VIDEO_CONTRAST(m_hCapDev[3], 128);

            m_sliderContrast.Value = 128;

            m_staticContrast.Text = "128";

            EXPORTS.QCAP_SET_VIDEO_HUE(m_hCapDev[0], 128);

            EXPORTS.QCAP_SET_VIDEO_HUE(m_hCapDev[1], 128);

            EXPORTS.QCAP_SET_VIDEO_HUE(m_hCapDev[2], 128);

            EXPORTS.QCAP_SET_VIDEO_HUE(m_hCapDev[3], 128);

            m_sliderHue.Value = 128;

            m_staticHue.Text = "128";

            EXPORTS.QCAP_SET_VIDEO_SATURATION(m_hCapDev[0], 128);

            EXPORTS.QCAP_SET_VIDEO_SATURATION(m_hCapDev[1], 128);

            EXPORTS.QCAP_SET_VIDEO_SATURATION(m_hCapDev[2], 128);

            EXPORTS.QCAP_SET_VIDEO_SATURATION(m_hCapDev[3], 128);

            m_sliderSaturation.Value = 128;

            m_staticSaturation.Text = "128";

            EXPORTS.QCAP_SET_VIDEO_SHARPNESS(m_hCapDev[0], 128);

            EXPORTS.QCAP_SET_VIDEO_SHARPNESS(m_hCapDev[1], 128);

            EXPORTS.QCAP_SET_VIDEO_SHARPNESS(m_hCapDev[2], 128);

            EXPORTS.QCAP_SET_VIDEO_SHARPNESS(m_hCapDev[3], 128);

            m_sliderSharpness.Value = 128;

            m_staticSharpness.Text = "128";
        }