示例#1
0
        public override Bitmap processImage(Bitmap sourceImage, BackgroundWorker worker)
        {
            Bitmap  resultImage = new Bitmap(sourceImage.Width, sourceImage.Height);
            Filters filter1     = new BinaryOperationsBuildup();
            Filters filter2     = new BinaryOperationsErosion();

            resultImage = filter2.processImage(sourceImage);
            resultImage = filter1.processImage(resultImage);
            return(resultImage);
        }
示例#2
0
        private void наращиваниеToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Filters filter = new BinaryOperationsBuildup();

            backgroundWorker1.RunWorkerAsync(filter);
        }