Re: animated formats supported by gdk-pixbuf
- From: Daniel Pekelharing <legendstar gmail com>
- To: f18m_cpp217828 yahoo it
- Cc: gtk-app-devel-list gnome org
- Subject: Re: animated formats supported by gdk-pixbuf
- Date: Mon, 25 Sep 2006 07:04:39 +0200
On Sun, 2006-09-24 at 22:34 +0200, Francesco Montorsi wrote:
Hi all,
I couldn't find a list of image formats supported by gdk-pixbuf; in
particular I'm interested to the animation formats it supports.
Does anyone knows how can I find such list?
You can query gdk-pixbuf directly in your program with
gdk_pixbuf_get_formats();
Here's an example on how to use it:
/* Compile with:
gcc `pkg-config --cflags --libs gtk+-2.0` -o format format.c */
#include <gtk/gtk.h>
int main(int argc, char **argv)
{
gtk_init(&argc, &argv);
GSList *list, *it;
GdkPixbufFormat *format;
list = gdk_pixbuf_get_formats();
if (list != NULL) {
for (it = list; it->next != NULL; it = it->next) {
format = (GdkPixbufFormat*)it->data;
printf("%s - %s\n", gdk_pixbuf_format_get_name(format),
gdk_pixbuf_format_get_description(format));
}
g_slist_free(list);
}
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]