Create a GtkDrawable from an X Drawable?
- From: Georgios Petasis <petasisg yahoo gr>
- To: gtk-app-devel-list gnome org
- Subject: Create a GtkDrawable from an X Drawable?
- Date: Tue, 19 Aug 2008 12:21:01 +0300
Hi all,
Can I create a GtkDrawable from an X Drawable?
I want to draw on a window not created by Gtk, and for the time being I
follow this:
I create a pixmap
I draw on the pixmap
I get a pixbuffer from the pixmap
I copy the pixbuffer on the drawable using
gdk_pixbuf_xlib_render_to_drawable
But this is really slow. Any ideas?
If I can create a GtkDrawable from an X Drawable, I could draw directly,
avoiding pixmaps, pixbufs & all the copies.
George
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]