Generate() public method

public Generate ( Gdk input ) : Gdk.Pixbuf
input Gdk
return Gdk.Pixbuf
Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
		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 ();

		}