Re: How can I save a PNG file from a GdkPixbuf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  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@xxxxxxxxx> 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@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 


-- 
Arnaldo M. Pereira
egghunt@xxxxxxxxx
http://www.sp-dhn.com.br/~arnaldo
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux