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 

Application for Drawing an Image in Drawing Area

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


Joined: 08 Dec 2006
Posts: 11

PostPosted: Mon Dec 11, 2006 7:27 am    Post subject: Application for Drawing an Image in Drawing Area Reply with quote

Hi,

Can anyone please tell, how to create a drawing area and then to draw an image over it using GTK/GDK API's.


Regards,
Prasanna.
Back to top
caracal
GTK+ Geek


Joined: 21 Jun 2007
Posts: 75
Location: Wilkes Barre Pa

PostPosted: Fri Jun 29, 2007 7:05 am    Post subject: Reply with quote

Well my first question to you will be what programming language are you using?

Answer this questions and i will point you in the right direction.
Back to top
langsweirdt



Joined: 13 Sep 2007
Posts: 1

PostPosted: Thu Sep 13, 2007 7:58 pm    Post subject: Reply with quote

I have the same question, I'm using C language.

Thanks.
Back to top
caracal
GTK+ Geek


Joined: 21 Jun 2007
Posts: 75
Location: Wilkes Barre Pa

PostPosted: Fri Sep 14, 2007 12:25 am    Post subject: Reply with quote

Well there are a couple of ways you can do this.

Download the gtk+ source from here http://www.gtk.org/download/
and in they example folder you can look at "scribble-simple, pixmap, wheelbarrow"
and then theres the demos folder you can look at the "pixbuf-demo" and then in the /demos/gtk-demo/ folder there is gtk-demo click that file and look at the images demo.

Here is a list of gtk+ tutorials

Gnome2 Developers Guide
http://home.cs.tum.edu/~siegel/files/tog2dg.pdf

Gtk+ 2.0 Tutorial
http://www.gtk.org/tutorial/

Gtk+ 2.0 Tree View tutorial
http://scentric.net/tutorial/treeview-tutorial.html
http://scentric.net/tutorial/treeview-tutorial.pdf

The Glib Object system
http://le-hacker.org/papers/gobject/index.html
http://le-hacker.org/papers/gobject/gobject-book-a4.pdf

Gtk+ 2.0 Text View tutorial
http://www.bravegnu.org/gtktext/

The Pango connection:
Part1: http://www.ibm.com/developerworks/library/l-u-pango1/
Part 2: http://www.ibm.com/developerworks/library/l-u-pango2/

GNOMEnclature: The wonders of GLib
Part 1: http://www.ibm.com/developerworks/linux/library/l-glib.html
Part 2: http://www.ibm.com/developerworks/linux/library/l-glib2.html

And study these tutorials as thay show you how to use the cairo vector graphics engine.
Writing a Widget Using Cairo and GTK+
Part1: http://www.gnomejournal.org/article/34/writing-a-widget-using-cairo-and-gtk28
Part2: http://www.gnomejournal.org/article/36/writing-a-widget-using-cairo-and-gtk28-part-2

Here are some cairo c examples on how to draw etc.
http://cairographics.org/samples/

Look here also.
http://cairographics.org/documentation/

There is also
Clutter
http://clutter-project.org/

Hope that helps
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