示例#1
0
文件: FormBloom.cs 项目: kyzmitch/Cip
 private void ReDraw()
 {
     Bloom filter = new Bloom(this.bloomFactor, this.thresholdLevel, this.radius);
     Raster result = filter.ProcessWithoutWorker(this.raster);
     result.ShowFilter(this.pBoxPreview);
 }
示例#2
0
文件: MainForm.cs 项目: kyzmitch/Cip
 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();
         }
     }
 }