Ejemplo n.º 1
0
        //通过滚动条调节锐度
        private void trackBar_Sharpness_Scroll(object sender, EventArgs e)
        {
            if (this.ActiveControl != sender)
            {
                return;
            }
            int sharpness = trackBar_Sharpness.Value;

            //滚动后更新左边输入框的里值
            textBox_Sharpness.Text = sharpness.ToString();

            MvApi.CameraSetSharpness(m_hCamera, sharpness);
        }
Ejemplo n.º 2
0
        //通过文本框调节锐度
        private void textBox_Sharpness_TextChanged(object sender, EventArgs e)
        {
            if (this.ActiveControl != sender)
            {
                return;
            }

            if (textBox_Sharpness.Text == "")
            {
                return;
            }

            int sharpness = Convert.ToInt32(textBox_Sharpness.Text);

            trackBar_Sharpness.Value = sharpness;
            MvApi.CameraSetSharpness(m_hCamera, sharpness);
        }