Beispiel #1
0
 public ImageOptimizer(Bitmap image, bool updateColors)
 {
     _progress = new DefaultProgress();
     Progress  = _progress;
     _image    = image;
     if (updateColors)
     {
         UpdateColors();
     }
 }
        private void Progress_ProgressChanged(object sender, EventArgs args)
        {
            IProgressExt progress = (IProgressExt)sender;

            this.Invoke((Action)(() => { lblProgress.Text = string.Format("Loading ({0}%)", progress.Percents); }));
        }
 public Processor()
 {
     _progress = new DefaultProgress();
     Progress  = _progress;
 }