Added some first steps for file saving. Big thing is that a

Added some first steps for file saving.  Big thing is that a gdk_pixbuf_save
function needs to be setup.

Mark
This commit is contained in:
Mark Crichton 1999-07-29 21:17:40 +00:00
parent 61f0ede138
commit 3d679818a0
3 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,11 @@
1999-07-29 Mark Crichton <crichton@gimp.org>
* src/io-png.c (image_save): Added PNG saving function
* src/gdk-pixbuf-io.c: Changed image_save function format. Now it's
image_save(GdkPixBuf *p, FILE *f, ...)
1999-07-26 Michael Zucchi <mzucchi@denr.sa.gov.au>
* src/Makefile.am (*_LIB): Only build the relevant loaders which

View File

@ -121,7 +121,7 @@ static struct {
gboolean (*format_check)(unsigned char *buffer, int size);
GModule *module;
GdkPixBuf *(*load)(FILE *f);
int (*save)(char *filename, ...);
int (*save)(GdkPixBuf, *p, FILE *f, ...);
} file_formats [] = {
{ "png", pixbuf_check_png, NULL, NULL, NULL },
{ "jpeg", pixbuf_check_jpeg, NULL, NULL, NULL },
@ -209,9 +209,3 @@ gdk_pixbuf_load_image (const char *file)
g_warning ("Unable to find handler for file: %s", file);
return NULL;
}
/*
* Local variables:
* c-basic-offset: 8
* End:
*/

View File

@ -163,3 +163,7 @@ GdkPixBuf *image_load(FILE * f)
return pixbuf;
}
int image_save(GdkPixBuf *pixbuf, FILE *file)
{
png_structp,