Re: How to use GtkImage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



GtkImage won't help you for your application as it is really only for showing static images. To do what you want, you may as well use a drawing area and then whenever you receive an exposed or resize event, just redraw your vector data through cairo. 

You may also want to check out the tutorial for my GtkImageViewer widget, which comes with a tutorial showing how you draw scalable data through cairo or agg. See:

http://giv.sourceforge.net/gtk-image-viewer/gtkimageviewer_tutorial.html

Look for agg-circles.c and cairo-circles.c .

A third option is using a canvas widget, e.g. goocanvas.

Regards,
Dov


2008/12/16 Daniel Lewandowski <dereach@xxxxxxxxx>
HI!

Can anybody post some code how to use widget GtkImage with Glade.
I'd like to make picture from array of points and show them in scalabe window.

Thanks in advance

Daniel
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux