simith nambiar wrote: > hi list, > i have a problem here ! i have a Logitech > Quickcam driver - v4l compliant and i am reading data > - the driver gives a frame of 352 X 288 pixels in RGB > format (3 bytes/pixel), now i need to plot it on a > window using gtk > > i should be using GdkDrawable - if iam not wrong , > iam new to GTK. so could anyone tell me how i can > put the RGB data on to the drawing area, is there a > built-in function to do that, iam not very well > acquainted with certain parameters in the Gdk.h > file.Please throw some light on that.
Hi Simith, you need gdk_draw_rgb_image(), it does exactly what you want. Look at the source of testrgb.c in the gtk area for examples. J ========================================================== Fabric of Vision Dress and Drapery in Painting 19 June - 8 September 2002 For information and tickets: http://www.nationalgallery.org.uk/exhibitions/fabric/ _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
