On 5/31/05, Freddie Unpenstein [EMAIL PROTECTED] wrote:
You mean all overlapping each other? You can only display a single flat
image (animations not counted). So if they're one ontop of another, you need
to composit them together into a single image.
The preferred monster, is;
-- Forwarded message --
From: Raghavendra [EMAIL PROTECTED]
Date: May 25, 2005 9:59 AM
Subject: Re: simple example of using gdk_pixbuf_new_from_file
To: Muthiah Annamalai [EMAIL PROTECTED]
Cc: gtk-app-devel-list@gnome.org
i sucessfully loaded a image using pixbufs.
thanks
I sucessfully loaded a image using pixbufs, but now i face the
difiiculty of loading multiple images in a window and those images
are transparent one. so each must be visible.
You mean all overlapping each other? You can only display a single flat
image (animations not counted). So if
i sucessfully loaded a image using pixbufs.
thanks to Mr.Muthiah.
but now i face the difiiculty of loading multiple images in a window
and those images are transparent one.
so each must be visible.
Any suggestions?
Thanks
Vishnu
___
gtk-app-devel-list
Like Ive been always yapping around my tutorial,
see this http://cybernetics.freewebspace.com/gtk/
for some tip on GdkPixbuf.
Your problem might be to change this line
gtk_init (argc, argv);
as
gtk_init (NULL,NULL);
Cheers
Muthu.
--- Raghavendra [EMAIL PROTECTED] wrote:
simple example
-- Forwarded message --
From: Dehua Zhao [EMAIL PROTECTED]
Date: May 9, 2005 7:32 PM
Subject: simple example of using gdk_pixbuf_new_from_file
To: gtk-app-devel-list@gnome.org
simple example of gdk_pixbuf
#includegtk/gtk.h
#includegdk-pixbuf/gdk-pixbuf.h
#include stdlib.h
#includegtk/gtk.h
#includegdk-pixbuf/gdk-pixbuf.h
#include stdlib.h
#includestring.h
#includestdio.h
#includestring.h
int main(int argc, char *argv[])
{
GError *gerror;
GdkPixbuf *originalpb, *pb;
GdkPixbuf *rpb, *ipb;
char filename[20];
gtk_set_locale ();
gtk_init (argc, argv);