Example #1
0
        public void SetOutput(IPixel2D2 device, Dictionary <int, Utility.PixelMap[]> pixelMapping)
        {
            if (this.device != null)
            {
                throw new ArgumentException("Can only control one device");
            }

            this.device      = device;
            this.pixelWidth  = device.PixelWidth;
            this.pixelHeight = device.PixelHeight;

            UpdatePixelMapping(pixelMapping);

            this.sub.LockWhenRunning(device);
        }
Example #2
0
        public void SetOutput(IPixel2D2 device, Dictionary<int, Utility.PixelMap[]> pixelMapping)
        {
            if (this.device != null)
                throw new ArgumentException("Can only control one device");

            this.device = device;
            this.pixelWidth = device.PixelWidth;
            this.pixelHeight = device.PixelHeight;

            UpdatePixelMapping(pixelMapping);

            this.sub.LockWhenRunning(device);
        }