Example #1
0
 /// <summary>
 /// The <see cref="Control.Click"/> event handler for the
 /// <see cref="Button"/> <see cref="btnAudioCompressorProperties"/>.
 /// Calls a <see cref="Webcam.ShowAudioCompressorConfigureDialog()"/>.
 /// </summary>
 /// <param name="sender">Source of the event.</param>
 /// <param name="e">An empty <see cref="EventArgs"/>.</param>
 private void btnAudioCompressorProperties_Click(object sender, EventArgs e)
 {
     if (this.dxCapture.AudioCompressorFilter != null)
     {
         DirectShowUtils.DisplayPropertyPage(this.Handle, this.dxCapture.AudioCompressorFilter);
     }
 }
Example #2
0
 /// <summary>
 /// The <see cref="Control.Click"/> event handler for the
 /// <see cref="Button"/> <see cref="btnVideoDeviceProperties"/>.
 /// Calls a <see cref="Webcam.ShowVideoDeviceConfigureDialog()"/>.
 /// </summary>
 /// <param name="sender">Source of the event.</param>
 /// <param name="e">An empty <see cref="EventArgs"/>.</param>
 private void btnVideoDeviceProperties_Click(object sender, EventArgs e)
 {
     if (this.dxCapture.VideoDeviceFilter != null)
     {
         DirectShowUtils.DisplayPropertyPage(this.Handle, this.dxCapture.VideoDeviceFilter);
     }
 }
Example #3
0
        /// <summary>
        /// This method displays the property pages for the current video device.
        /// </summary>
        public void ShowVideoDeviceConfigureDialog()
        {
            if (this.dxCapture == null)
            {
                return;
            }

            if (this.dxCapture.VideoDeviceFilter != null)
            {
                DirectShowUtils.DisplayPropertyPage(this.Handle, this.dxCapture.VideoDeviceFilter);
            }
        }
Example #4
0
        /// <summary>
        /// This method displays the property pages for the current audio compressor.
        /// </summary>
        public void ShowAudioCompressorConfigureDialog()
        {
            if (this.dxCapture == null)
            {
                return;
            }

            if (this.dxCapture.AudioCompressorFilter != null)
            {
                DirectShowUtils.DisplayPropertyPage(this.Handle, this.dxCapture.AudioCompressorFilter);
            }
        }
Example #5
0
        ///////////////////////////////////////////////////////////////////////////////
        // Public methods                                                            //
        ///////////////////////////////////////////////////////////////////////////////
        #region PUBLICMETHODS
        #endregion //PUBLICMETHODS

        ///////////////////////////////////////////////////////////////////////////////
        // Inherited methods                                                         //
        ///////////////////////////////////////////////////////////////////////////////
        #region OVERRIDES
        #endregion //OVERRIDES

        ///////////////////////////////////////////////////////////////////////////////
        // Eventhandler                                                              //
        ///////////////////////////////////////////////////////////////////////////////
        #region EVENTS

        ///////////////////////////////////////////////////////////////////////////////
        // Eventhandler for UI, Menu, Buttons, Toolbars etc.                         //
        ///////////////////////////////////////////////////////////////////////////////
        #region WINDOWSEVENTHANDLER

        /// <summary>
        /// The <see cref="Control.Click"/> event handler for the
        /// <see cref="Button"/> <see cref="btnEncoderProperties"/>.
        /// Shows the property pages of the selected filter.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">An empty <see cref="EventArgs"/></param>
        private void btnEncoderProperties_Click(object sender, EventArgs e)
        {
            // Create the filter for the selected video compressor
            IBaseFilter compressorFilter = DirectShowUtils.CreateFilter(
                FilterCategory.VideoCompressorCategory,
                this.cbbEncoderFilter.Text);

            if (compressorFilter != null)
            {
                DirectShowUtils.DisplayPropertyPage(this.Handle, compressorFilter);
                Marshal.ReleaseComObject(compressorFilter);
            }
        }