예제 #1
0
        public void Render(GimpPreview preview)
        {
            var image = GetImageFromGoogleCharts(preview.Size);

            preview.Redraw(image.ActiveDrawable);
            image.Delete();
        }
예제 #2
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();
        }
예제 #3
0
        override protected 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();
        }
예제 #4
0
 public void Render(GimpPreview preview)
 {
     var image = GetImageFromGoogleCharts(preview.Size);
       preview.Redraw(image.ActiveDrawable);
       image.Delete();
 }