Re: How can I save a PNG file from a GdkPixbuf
- From: Arnaldo de Moraes Pereira <egghunt gmail com>
- To: gtk-list gnome org
- Subject: Re: How can I save a PNG file from a GdkPixbuf
- Date: Sun, 24 Oct 2004 17:35:59 -0300
Hi Jack,
This URL might help you, it's from gdk-pixbuf API:
http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/gdk-pixbuf-file-saving.html#gdk-pixbuf-save
Take care.
On Sun, 24 Oct 2004 16:15:48 -0400 (EDT), Jack Chen
<jacks_small_world yahoo com> wrote:
> Hi, dear list members,
>
> I have a problem that I hope someone can help me with. I would like to
> save a GdkPixbuf to a PNG file using either
>
> gdk_pixbuf_savev (GdkPixbuf *pixbuf,
> const char *filename,
> const char *type,
> char **option_keys,
> char **option_values,
> GError **error);
>
> or
>
> gdk_pixbuf_save (GdkPixbuf *pixbuf,
> const char *filename,
> const char *type,
> GError **error,
> ...);
>
> The problem is I don't know what those 'option...s' are for, and if I
> leave them all as NULL, the program can compile, but will crash after
> starting. I think the problem is I don't know what 'options' to specify
> for the PNG format. I can save a JEPG file no problem because there's a
> sample source code in the GdkPixbuf's reference, but there's no example
> for PNG.
>
> I will really appreciate it if someone can help me out with this
> problem.
>
> Thank you.
>
> Jack
>
> ______________________________________________________________________
> Post your free ad now! http://personals.yahoo.ca
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
--
Arnaldo M. Pereira
egghunt gmail com
http://www.sp-dhn.com.br/~arnaldo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]