Integration - gtkmm

I'm not a whiz with gtkmm, but here is a snippet for putting the buffer from a frame into a Gtk::Image.

    1   gtkimage.get_window()->draw_rgb_image(
    2     gtkimage.get_style()->get_bg_gc(Gtk::STATE_NORMAL),
    3     0,
    4     0,
    5     frame.width,
    6     frame.height,
    7     Gdk::RGB_DITHER_NONE,
    8     (const guchar*) frame.buffer,
    9     frame.width*3
   10   );

That is assuming you have a Gtk::Image called gtkimage and a vdFrame called frame.


Navigation: Back (Integration) - Home - Next (Integration - libmagick++)
Generated on Mon Jul 28 16:14:11 2008 for libvcvideo by  doxygen 1.5.3