Hello, I have to refresh some picture from a webcam (jpeg format) and actually I use a : Glib::RefPtr<Gdk::Pixbuf> current_frame_;
to refresh in an << on_expose_event(GdkEventExpose *event ) >> method. If I load the new pict from file it's ok it works fine... But my aim is to refresh from memory and not file, for speed and 'cause we work on the picture (transform in B&W etc. before <= we use Magick++ to work on it) So after looking on all method I think that I have choice between : Gdk::Pixbuf::create_from_data and Gdk::Pixbuf::create_from_xpm_data but the fact is I don't understand what kind of data I pass to them... for example with create_from_xpm_data : is it the content of a xpm file (all text) or only the content of the char array ? and for create_from_data does anyone got a sample ? thanks by advance for all your answear, Alexandre _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
