GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

XPutImage() equivalent in gtk/gdk

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
kprasanna16
Familiar Face


Joined: 08 Dec 2006
Posts: 11

PostPosted: Fri Dec 08, 2006 8:10 am    Post subject: XPutImage() equivalent in gtk/gdk Reply with quote

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

PostPosted: Fri Dec 08, 2006 3:14 pm    Post subject: Reply with quote

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

PostPosted: Mon Dec 11, 2006 5:08 am    Post subject: Reply with quote

openldev wrote:
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.


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
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP