diff options
author | Sven Neumann <sven@gimp.org> | 2005-05-24 17:09:56 +0000 |
---|---|---|
committer | Sven Neumann <neo@src.gnome.org> | 2005-05-24 17:09:56 +0000 |
commit | 3bc682d0122ba5f5f644e7ceffc4e44c6c6cf68f (patch) | |
tree | ce7c8b262229563fd9af2fc1f0bce23247adf286 /gdk-pixbuf/gdk-pixbuf-io.c | |
parent | e7a0b015f6246dbc31da43edba7f68b8defc21c5 (diff) | |
download | gtk+-3bc682d0122ba5f5f644e7ceffc4e44c6c6cf68f.tar.gz |
allow to specify the PNG compression level by passing a "compression"
2005-05-24 Sven Neumann <sven@gimp.org>
* io-png.c: allow to specify the PNG compression level by passing
a "compression" parameter to the PNG save function (bug #305337).
* gdk-pixbuf-io.c (gdk_pixbuf_save): document the new parameter.
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf-io.c')
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-io.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c index 653315e266..76b91653e3 100644 --- a/gdk-pixbuf/gdk-pixbuf-io.c +++ b/gdk-pixbuf/gdk-pixbuf-io.c @@ -1556,11 +1556,15 @@ gdk_pixbuf_real_save_to_callback (GdkPixbuf *pixbuf, * "quality", "100", NULL); * </programlisting></informalexample> * - * Currently only few parameters exist. JPEG images can be saved with a - * "quality" parameter; its value should be in the range [0,100]. + * Currently only few parameters exist. JPEG images can be saved with a + * "quality" parameter; its value should be in the range [0,100]. + * * Text chunks can be attached to PNG images by specifying parameters of * the form "tEXt::key", where key is an ASCII string of length 1-79. - * The values are UTF-8 encoded strings. + * The values are UTF-8 encoded strings. The PNG compression level can + * be specified using the "compression" parameter; it's value is in an + * integer in the range of [0,9]. + * * ICO images can be saved in depth 16, 24, or 32, by using the "depth" * parameter. When the ICO saver is given "x_hot" and "y_hot" parameters, * it produces a CUR instead of an ICO. |