private void LiveViewPicBox_SizeChanged(object sender, EventArgs e) { try { LVBw = LiveViewPicBox.Width; LVBh = LiveViewPicBox.Height; LiveViewPicBox.Invalidate(); } catch (Exception ex) { ReportError(ex.Message, false); } }
private void MainCamera_LiveViewUpdated(Camera sender, Stream img) { try { lock (LvLock) { Evf_Bmp?.Dispose(); Evf_Bmp = new Bitmap(img); } LiveViewPicBox.Invalidate(); } catch (Exception ex) { ReportError(ex.Message, false); } }