Пример #1
0
        public formMain()
        {
            InitializeComponent();

            worker = new ThreadWorker();
            worker.pictureProcessed += new ThreadWorker.pictureProcessedEventHandler(worker_pictureProcessed);
            worker.pictureProcessingComplete += new ThreadWorker.pictureProcessingCompleteEventHandler(worker_pictureProcessingComplete);
        }
Пример #2
0
 void worker_pictureProcessed(object sender, ThreadWorker.PictureProcessedEventArgs e)
 {
     imgCanvas.Image.Dispose();
     imgCanvas.Image = e.processedImage;
 }