From c9d2f89597ab93d2aa9485d0964cfaf73566220c Mon Sep 17 00:00:00 2001 From: Chris Reuter Date: Mon, 16 Dec 2013 16:39:00 -0500 Subject: Added gdImageFile(), gdImageCreateFromFile() and gdSupportsFileType(). These are convenience functions which load or save image data to a file. They are roughly equivalent to opening a file handle with fopen() and calling gdImageCreateFrom*() or gdImage*() on the FILE pointer. However, these functions identify the input or output format from the filename suffix and call the appropriate read or write function accordingly. gdSupportsFileType() can be used to test if a specific file format is supported. Most scripting interfaces already do something like this but now there's support for doing it from C as well. This change also adds test cases for the code and naturaldocs documentation. --- docs/naturaldocs/project/Menu.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') diff --git a/docs/naturaldocs/project/Menu.txt b/docs/naturaldocs/project/Menu.txt index ce0c702..2db47b0 100644 --- a/docs/naturaldocs/project/Menu.txt +++ b/docs/naturaldocs/project/Menu.txt @@ -48,6 +48,7 @@ Format: 1.51 File: About LibGD 2.1.1-dev (preamble.txt) File: gd.h (gd.h) +File: gd_filename.c (gd_filename.c) File: gd_filter.c (gd_filter.c) File: gd_interpolation.c (gd_interpolation.c) File: gdImageCreate (gd.c) -- cgit v1.2.1