Re: [gtkmm] How to insert a jpeg image in my window ?



Am Mit, 2002-11-27 um 19.19 schrieb Sylvain LATOUCHE:
> Can J have an exemple in order to insert image in window with gtkmm ?
> Thanks to answer

    Gtk::Image* image = new Gtk::Image("filename.jpg");
    window.add(*Gtk::manage(image));

If you want to draw the image yourself using more low-level
functionality see demos/pixbuf-demo.cc.

--Daniel





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]