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); }
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); }
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); }
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; }
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); }
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; }
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); }