public static void Main(string [] args) { Gtk.Application.Init(); Gdk.Pixbuf pixbuf = new Gdk.Pixbuf(args [0]); Log.DebugFormat("loaded {0}", args [0]); Histogram hist = new Histogram(); Log.DebugFormat("loaded histgram", args [0]); Gtk.Window win = new Gtk.Window("display"); Gtk.Image image = new Gtk.Image(); Gdk.Pixbuf img = hist.Generate(pixbuf); image.Pixbuf = img; win.Add(image); win.ShowAll(); Gtk.Application.Run(); }
public static void Main (string [] args) { Gtk.Application.Init (); Gdk.Pixbuf pixbuf = new Gdk.Pixbuf (args [0]); Log.DebugFormat ("loaded {0}", args [0]); Histogram hist = new Histogram (); Log.DebugFormat ("loaded histgram", args [0]); Gtk.Window win = new Gtk.Window ("display"); Gtk.Image image = new Gtk.Image (); Gdk.Pixbuf img = hist.Generate (pixbuf); image.Pixbuf = img; win.Add (image); win.ShowAll (); Gtk.Application.Run (); }