 |
GTK+ Forums Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
|
|
|
| Author |
Message |
|
|
kprasanna16 Familiar Face
Joined: 08 Dec 2006 Posts: 11
|
Posted: Fri Dec 08, 2006 8:10 am Post subject: XPutImage() equivalent in gtk/gdk |
|
|
Hi,
I'm having an application which is having X-calls. I want to replace it with some equivalent gtk/gdk calls.
Can anyone please tell what is equivalent API in gtk/gdk for XPutImage
for functionality of XPutImage() please visit:
http://tronche.com/gui/x/xlib/graphics/XPutImage.html
It need not be necessary for exactly one equivalent gtk/gdk API, any combinations of API's will also work.
Regards,
Prasanna. |
|
| Back to top |
|
 |
openldev Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 387 Location: Fairfax, Virginia
|
Posted: Fri Dec 08, 2006 3:14 pm Post subject: |
|
|
First, you only need to post in one forum for your question to be answered please. So, as for your question. If you want to draw on a GdkDrawable, use gdk_draw_image().
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Drawing-Primitives.html#gdk-draw-image
Every GtkWidget has a member "window", which is of the type GdkWindow. GdkWindow is actually a GdkDrawable, so you can use any of the drawing primitives. |
|
| Back to top |
|
 |
kprasanna16 Familiar Face
Joined: 08 Dec 2006 Posts: 11
|
Posted: Mon Dec 11, 2006 5:08 am Post subject: |
|
|
I have already tried with gdk-draw-image. but it draws an image over a Drawable while XPutImage combines the image with the Drawable.. so some kind of blending is going on XPutImage.. is there anything available in GTK/GDK |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group CodeBB 1.0 Beta 2
|