예제 #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);
         }
     }
 }
예제 #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);
             }
     }
 }