Re: Displaying Image
- From: John Cupitt <john cupitt ng-london org uk>
- To: H McCurdy <hmccurdy yahoo com>
- Cc: GTK <gtk-list gnome org>
- Subject: Re: Displaying Image
- Date: Fri, 04 Jun 2004 18:45:20 +0000
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]