示例#1
0
        public override Bitmap processImage(Bitmap sourceImage, BackgroundWorker worker)
        {
            Filtres erosion     = new Erosion();
            Filtres dilation    = new Dilation();
            Bitmap  resultImage = erosion.processImage(sourceImage, worker);

            resultImage = dilation.processImage(resultImage, worker);
            return(resultImage);
        }
示例#2
0
        private void расширениеToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Filtres filter = new Dilation();

            backgroundWorker1.RunWorkerAsync(filter);
        }