Re: help with gtk/gdk/imlib
- From: Havoc Pennington <rhpennin midway uchicago edu>
- To: Andreas Jellinghaus <aj dungeon inka de>
- cc: gnome-list gnome org
- Subject: Re: help with gtk/gdk/imlib
- Date: Sun, 23 Aug 1998 13:53:08 -0500 (CDT)
On Sun, 23 Aug 1998, Andreas Jellinghaus wrote:
> can someone show me an example, how to get from a gif/jpeg/png/... file to
> something i can display (i guess GtkImage) ?
>
> i have 10 images in seperate files and need 10x10 board
> (i'm rewriting a 10 year old game to gnome).
>
> thanks for your help.
>
Have a look at GnomePixmap in gnome-libs for some examples.
(if it's a Gnome app you'll want to install the images to the standard
Gnome location, then get the full path with gnome_pixmap_file, and
load a pixmap from that path).
Also look at the GnomeCanvas, it will probably be excellent for this
application. test-gnome has examples in gnome-libs.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]