SetImage() public method

public SetImage ( Bitmap image ) : void
image System.Drawing.Bitmap
return void
示例#1
0
        public TestPixel2D(IUpdateActionParent parent, int pixelWidth, int pixelHeight)
        {
            this.pixelWidth  = pixelWidth;
            this.pixelHeight = pixelHeight;

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

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

            Executor.Current.Register(this);
        }