Example #1
0
 private void ReDraw()
 {
     Bloom filter = new Bloom(this.bloomFactor, this.thresholdLevel, this.radius);
     Raster result = filter.ProcessWithoutWorker(this.raster);
     result.ShowFilter(this.pBoxPreview);
 }
Example #2
0
 private void bloomToolStripMenuItem_Click(object sender, EventArgs e)
 {
     cipFormBloom form = new cipFormBloom(this.picBoxModifyed.Image,this.GetCurrentRaster());
     if(form.ShowDialog()==DialogResult.OK)
     {
         int radius = form.Radius;
         float blendFactor = form.BlendFactor;
         float thresholdLevel = form.ThresholdLevel;
         if (!backgroundWorkerCip.IsBusy)
         {
             ImageFilter filter = new Cip.Filters.Bloom(blendFactor, thresholdLevel, radius);
             backgroundWorkerCip.RunWorkerAsync(filter);
             this.CalculateHistogram();
         }
     }
 }