public TestPixel1D(IUpdateActionParent parent, IPixel1D2 logicalDevice) : this(parent, logicalDevice.Pixels) { this.logicalDevice = logicalDevice; logicalDevice.ImageChanged.Subscribe(x => { this.outputBitmap = new Bitmap(x); this.newDataAvailable = true; }); }
public void SetOutput(IPixel1D2 device, Dictionary <int, Utility.PixelMap[]> pixelMapping) { if (this.device != null) { throw new ArgumentException("Can only control one device"); } this.device = device; this.pixelWidth = device.Pixels; this.pixelHeight = 1; UpdatePixelMapping(pixelMapping); this.sub.LockWhenRunning(device); }
public void SetOutput(IPixel1D2 device, Dictionary<int, Utility.PixelMap[]> pixelMapping) { if (this.device != null) throw new ArgumentException("Can only control one device"); this.device = device; this.pixelWidth = device.Pixels; this.pixelHeight = 1; UpdatePixelMapping(pixelMapping); this.sub.LockWhenRunning(device); }