private void SendBitmap(Bitmap bitmap) { foreach (var bus in BitmapBuses.Reverse <IDataBus <Bitmap> >()) { if (bus.SendData(bitmap)) { continue; } } }
private void InitBitmapBuses() { BitmapBuses.Add( deskBus = new DesktopBus() { Enabled = true }); BitmapBuses.Add( clipBus = new ClipboardBus() { Enabled = false }); }
public void EndCapture(Bitmap bitmap) { CaptureMode = CaptureMode.Unknown; if (bitmap == null) { return; } foreach (var bus in BitmapBuses.Reverse <IDataBus <Bitmap> >()) { if (bus.SendData(bitmap)) { return; } } }