GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Oct 24, 2014 2:42 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: XPutImage() equivalent in gtk/gdk
PostPosted: Fri Dec 08, 2006 8:10 am 
Offline
Familiar Face

Joined: Fri Dec 08, 2006 6:44 am
Posts: 11
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 08, 2006 3:14 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
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/ ... 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.

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 11, 2006 5:08 am 
Offline
Familiar Face

Joined: Fri Dec 08, 2006 6:44 am
Posts: 11
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/ ... 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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group