mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 21:40:19 +00:00
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:
parent
61f0ede138
commit
3d679818a0
@ -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
|
||||
|
@ -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:
|
||||
*/
|
||||
|
@ -163,3 +163,7 @@ GdkPixBuf *image_load(FILE * f)
|
||||
|
||||
return pixbuf;
|
||||
}
|
||||
|
||||
int image_save(GdkPixBuf *pixbuf, FILE *file)
|
||||
{
|
||||
png_structp,
|
||||
|
Loading…
Reference in New Issue
Block a user