Generate() 공개 메소드

public Generate ( Gdk input ) : Gdk.Pixbuf
input Gdk
리턴 Gdk.Pixbuf
예제 #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();
        }
예제 #2
0
파일: Histogram.cs 프로젝트: mono/f-spot
		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 ();

		}