PROBLEM: bitmap in memory to gtkimage

2007-02-05 Thread Prest Alessandro
Hello, I have a bitmap image loaded in memory which structure is a standard bitmap structure (BITMAP Info Header). I want to display this bitmap in a GDKimage, which routine should I call? Is this correct: gdkPix = gdk_pixmap_create_from_data(NULL,(gchar*)img_out.data,640,480,2,fg,bg); image =

Camera survellaince project with GTK 2

2007-02-04 Thread Prest Alessandro
Hello, I'm developing an application that receive photograph from remote camera via TCP (BMP format, 640x480, approx 1mb per photo) and I have to render them in a window. I've made a try with GtkImage but it is very slow (about 1 image per second). Do you have any suggestion for a quick rendering