Exemple #1
0
        public TestPixel2D(IUpdateActionParent parent, IPixel2D2 logicalDevice)
            : this(parent, logicalDevice.PixelWidth, logicalDevice.PixelHeight)
        {
            this.logicalDevice = logicalDevice;

            logicalDevice.ImageChanged.Subscribe(x =>
            {
                this.outputBitmap = new Bitmap(x);

                this.newDataAvailable = true;
            });
        }
Exemple #2
0
        public TestPixel2D(IUpdateActionParent parent, IPixel2D2 logicalDevice)
            : this(parent, logicalDevice.PixelWidth, logicalDevice.PixelHeight)
        {
            this.logicalDevice = logicalDevice;

            logicalDevice.ImageChanged.Subscribe(x =>
            {
                this.outputBitmap = new Bitmap(x);

                this.newDataAvailable = true;
            });
        }
        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);
        }
Exemple #4
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);
        }