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