Animatroller.Simulator.Control.PixelLight1D.SetImage C# (CSharp) Method

SetImage() public method

public SetImage ( Bitmap image ) : void
image System.Drawing.Bitmap
return void
        public void SetImage(Bitmap image)
        {
            this.outputBitmap = image;

            Invalidate();
        }

Usage Example

Ejemplo n.º 1
0
        private TestPixel1D(IUpdateActionParent parent, int numberOfPixels)
        {
            this.numberOfPixels = numberOfPixels;

            parent.AddUpdateAction(() =>
            {
                lock (lockObject)
                {
                    if (this.newDataAvailable)
                    {
                        this.newDataAvailable = false;

                        if (control != null)
                        {
                            control.SetImage(this.outputBitmap);
                        }
                    }
                }
            });

            Executor.Current.Register(this);
        }