summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris Reuter <chris@blit.ca>2013-12-16 16:39:00 -0500
committerChris Reuter <chris@blit.ca>2013-12-16 17:27:34 -0500
commitc9d2f89597ab93d2aa9485d0964cfaf73566220c (patch)
tree3d2a4ea82171acc924be8b3e19aa29c1186966f7 /docs
parente054be7d82df34aefa099ed92065e510ce7f3b6b (diff)
downloadlibgd-c9d2f89597ab93d2aa9485d0964cfaf73566220c.tar.gz
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.
Diffstat (limited to 'docs')
-rw-r--r--docs/naturaldocs/project/Menu.txt1
1 files changed, 1 insertions, 0 deletions
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)