Re: Displaying Image

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

 



H McCurdy wrote:
I know how to write code to display an image in 1.2. But I'm trying to migrate the program to 2.x and can't
find any relevant documentation. The tutorial says
"undocumented" and the FAQ is empty.

Try the API reference:


http://developer.gnome.org/doc/API/2.0/gtk/GtkImage.html

The code you need is listed:

GtkWidget *image = gtk_image_new_from_file ("myfile.png");

John
_______________________________________________

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