コード例 #1
0
        public VirtualPixel1D3 AddPixelDevice(int startVirtualPosition, int positions, bool reverse, Action <byte[]> pixelsChanged)
        {
            var newPixelDevice = new PixelDevice(this.pixelCount, startVirtualPosition, startVirtualPosition + positions - 1, reverse, pixelsChanged);

            this.devices.Add(newPixelDevice);

            return(this);
        }
コード例 #2
0
        public VirtualPixel1D2 AddPixelDevice(int startVirtualPosition, int positions, Action <Color[]> pixelsChanged)
        {
            var newPixelDevice = new PixelDevice
            {
                PixelsChangedAction = pixelsChanged,
                StartPosition       = startVirtualPosition,
                EndPosition         = startVirtualPosition + positions - 1
            };

            this.devices.Add(newPixelDevice);

            return(this);
        }
コード例 #3
0
        public VirtualPixel1D AddPixelDevice(int startVirtualPosition, int positions, EventHandler <PixelChangedEventArgs> pixelChanged,
                                             EventHandler <MultiPixelChangedEventArgs> multiPixelChanged)
        {
            var newPixelDevice = new PixelDevice
            {
                PixelChanged      = pixelChanged,
                MultiPixelChanged = multiPixelChanged,
                StartPosition     = startVirtualPosition,
                EndPosition       = startVirtualPosition + positions - 1
            };

            this.devices.Add(newPixelDevice);

            return(this);
        }
コード例 #4
0
ファイル: VirtualPixel1D.cs プロジェクト: HakanL/animatroller
        public VirtualPixel1D AddPixelDevice(int startVirtualPosition, int positions, EventHandler<PixelChangedEventArgs> pixelChanged,
            EventHandler<MultiPixelChangedEventArgs> multiPixelChanged)
        {
            var newPixelDevice = new PixelDevice
            {
                PixelChanged = pixelChanged,
                MultiPixelChanged = multiPixelChanged,
                StartPosition = startVirtualPosition,
                EndPosition = startVirtualPosition + positions - 1
            };

            this.devices.Add(newPixelDevice);

            return this;
        }
コード例 #5
0
        public void AddPixelDevice(Dictionary <int, Utility.PixelMap[]> pixelMapping, Action <byte[]> pixelsChanged)
        {
            var newPixelDevice = new PixelDevice(this.pixelWidth, this.pixelHeight, pixelMapping, pixelsChanged);

            this.devices.Add(newPixelDevice);
        }
コード例 #6
0
        public VirtualPixel1D3 AddPixelDevice(int startVirtualPosition, int positions, bool reverse, Action<byte[]> pixelsChanged)
        {
            var newPixelDevice = new PixelDevice(this.pixelCount, startVirtualPosition, startVirtualPosition + positions - 1, reverse, pixelsChanged);

            this.devices.Add(newPixelDevice);

            return this;
        }
コード例 #7
0
        public void AddPixelDevice(Dictionary<int, Utility.PixelMap[]> pixelMapping, Action<byte[]> pixelsChanged)
        {
            var newPixelDevice = new PixelDevice(this.pixelWidth, this.pixelHeight, pixelMapping, pixelsChanged);

            this.devices.Add(newPixelDevice);
        }