示例#1
0
        /// /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_cam != null)
                {
                    _cam.Dispose();
                    _cam = null;
                }

                if (components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose(disposing);
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VideoControl"/> class.
 /// </summary>
 public VideoControl()
 {
     InitializeComponent();
     _cam = new VideoCapture(panelVideo.Handle);
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VideoControl"/> class.
 /// </summary>
 public VideoControl()
 {
     InitializeComponent();
     _cam = new VideoCapture(panelVideo.Handle);
 }