private void OnResizePictureBox(object sender, EventArgs e) { if (pictureBoxEnhanced.Width != 0 && _bitmapLiveSource != null) { _bitmapLiveSource.Width = pictureBoxEnhanced.Width; _bitmapLiveSource.Height = pictureBoxEnhanced.Height; _bitmapLiveSource.SetWidthHeight(); } }
private void OnResizePictureBox(object sender, EventArgs e) { if (_bitmapVideoSource != null) { _newWidth = pictureBox.Width; _newHeight = pictureBox.Height; _setResolution = true; } if (_bitmapLiveSource != null) { _bitmapLiveSource.Width = pictureBox.Width; _bitmapLiveSource.Height = pictureBox.Height; _bitmapLiveSource.SetWidthHeight(); } }