Duncan Chang <[EMAIL PROTECTED]> wrote: > Now i am coding a application with Gtk+, but i need the low level > x-lib API XvShmPutImage() to communicate to driver. I done with create > another window(XCreateWindow()) to make XvShmPutImage() work, but in this > way the dummy window that created from XCreateWindow(), is not the one that > i want. I using the return values from XCreateWindow(), XOpenDisplay(), and > XCreateGC() as the XvShmPutImage()'s input parameters. I had tried get > those values from Gtk+ widget handle, but it fail. How could i using Gtk+ > only with XvShmPutImage() to make it work, without creating a dummy window?
The GDK library has wrappers for the XImage functions. See the entire "Image" section of the online manual, and also the gdk_draw_image() function in the "Drawing" section. To use these in Gtk+, take a look at the "GtkImage" section of the GTK manual. In particular, the gtk_image_set_from_image() function looks useful. The GDK/GTK manual is available online at... http://developer.gnome.org/doc/API/2.0/gdk/index.html Disclaimer: I've never used the above functions. _______________________________________________ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert
