Tadej... I been trying to implement that code since you gave me a hint on how to proceed but I have myself stuck in another problem.... I am bit confused on how to implement that, and I can't find a good documentation explaining how to....! I post my code so far, if you could give to me a lil help... My questions are:
1 - How to insert my drawable area onto my main window? 2 - How to put everything together? I know that I have to create a Drawable area, then a pixbuf from my buffer and to use a expose_function to draw on a drawable... but I just can't put all this together...;O( ! That is what I have so far... plz, I need assistance. ;O) http://pastebin.com/xvgmwb29 Thanks in advance! On Fri, Apr 2, 2010 at 7:00 PM, Guilherme Raymo Longo < [email protected]> wrote: > thanks Tadej and Jonh.... > > I appreciated.... > > > On Fri, Apr 2, 2010 at 9:41 AM, <[email protected]> wrote: > >> On 2 April 2010 07:48, Guilherme Raymo Longo <[email protected]> >> wrote: >> > I am struggling on how to output the content of a v4l2 webcam software >> which >> > I have already working on a GtkWidget. >> >> You can use gdk_draw_rgb_image() to draw a memory buffer to the screen. >> >> >> http://library.gnome.org/devel/gdk/stable/gdk-GdkRGB.html#gdk-draw-rgb-image >> >> Make a GtkDrawingArea and call that in expose. >> >> You can also use cairo, though it'd probably be a little slower. If >> you need more speed than gdk_draw_rgb_image() (though you should be >> able to do 640 x 480 x 60 fps on most machines) you'll need to use >> opengl or similar. >> >> John >> > >
_______________________________________________ gtk-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtk-list
