public Bitmap Capture() { if (_dupl == null) { _dupl = new DesktopDuplicator(_rectangle, _includeCursor, _monitor); } try { return(_dupl.Capture()); } catch { _dupl?.Dispose(); _dupl = new DesktopDuplicator(_rectangle, _includeCursor, _monitor); try { return(_dupl.Capture()); } catch { return(new Bitmap(Width, Height)); } } }
public Bitmap Capture() { try { return(_dupl.Capture()); } catch { Reinit(); try { return(_dupl.Capture()); } catch { return(new Bitmap(Width, Height)); } } }
public IBitmapFrame Capture() { try { return(_dupl.Capture()); } catch { Reinit(); try { return(_dupl.Capture()); } catch { return(new OneTimeFrame(new Bitmap(Width, Height))); } } }
public IBitmapFrame Capture() { try { return(_dupl.Capture()); } catch { try { Reinit(); } catch { return(RepeatFrame.Instance); } try { return(_dupl.Capture()); } catch { return(new OneTimeFrame(new Bitmap(Width, Height))); } } }
public Bitmap Capture() { try { return(_dupl.Capture()); } catch { try { _dupl?.Dispose(); _dupl = new DesktopDuplicator(WindowProvider.DesktopRectangle, _includeCursor, _monitor); return(_dupl.Capture()); } catch { return(new Bitmap(Width, Height)); } } }
public IEditableFrame Capture() { return(_dupl.Capture()); }
public IBitmapFrame Capture() { return(_dupl.Capture()); }