Курсовая работа: Програма обробки зображень
StartParam s = (StartParam)e.Argument;
pictureF.Image = Filter.Filtering(s.b, s.k.Kernel , backgroundWorker);
}
private void backgroundWorker_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
win.progressBar.Value = e.ProgressPercentage;
}
private void backgroundWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
win.Close();
}
}
class StartParam
{
public Bitmap b = null;
public IKernel k = null;
public StartParam(Bitmap b, IKernel k)
{
this.b = b;
this.k = k;
}
}
}
WaitForm.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;