Esempio n. 1
0
        protected override void UpdatePreview(GimpPreview preview)
        {
            // Fix me: it's probably better to just create a new Drawable iso
              // a completely new image!
              var clone = new Image(_image);
              clone.Crop(preview.Bounds);

              var drawable = clone.ActiveDrawable;

              var renderer = new Renderer(Variables);
              renderer.Render(clone, drawable, null);
              preview.Redraw(drawable);
              clone.Delete();
        }
Esempio n. 2
0
 protected override void Render(Image image, Drawable drawable)
 {
     var renderer = new Renderer(Variables);
       renderer.Render(image, drawable, new Progress(_("Raindrops...")));
 }