Ejemplo n.º 1
0
 protected void OnGraphEventBoxExposeEvent(object o, ExposeEventArgs args)
 {
     if (((DrawingArea)o).GdkWindow != null)
     {
         using(ImageSurface tmpSurface = new ImageSurface(Format.Rgb24, ((DrawingArea)o).Allocation.Width, ((DrawingArea)o).Allocation.Height))
         using(GtkGraphDrawer drawer = new GtkGraphDrawer(Gdk.CairoHelper.Create(((DrawingArea)o).GdkWindow), new Context(tmpSurface), tmpSurface))
         {
             BaseGraph.DrawFullGraph (drawer);
         }
     }
 }
Ejemplo n.º 2
0
 protected void OnGraphEventBoxExposeEvent(object o, ExposeEventArgs args)
 {
     if (((DrawingArea)o).GdkWindow != null)
     {
         using (ImageSurface tmpSurface = new ImageSurface(Format.Rgb24, ((DrawingArea)o).Allocation.Width, ((DrawingArea)o).Allocation.Height))
             using (GtkGraphDrawer drawer = new GtkGraphDrawer(Gdk.CairoHelper.Create(((DrawingArea)o).GdkWindow), new Context(tmpSurface), tmpSurface))
             {
                 BaseGraph.DrawFullGraph(drawer);
             }
     }
 }