Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-08-23 12:04:21 +0000
committerStijn Buys <ingar@osirion.org>2008-08-23 12:04:21 +0000
commit02e9a70009f79064043033abc5e597930aa11079 (patch)
tree606615f7ed162f9acc1e91f03b9745a12637d41a /src/render/pngfile.h
parent375b7d96a3974a03416c600b579048e48f1580a2 (diff)
PNG support
Diffstat (limited to 'src/render/pngfile.h')
-rw-r--r--src/render/pngfile.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/render/pngfile.h b/src/render/pngfile.h
new file mode 100644
index 0000000..a7beb7c
--- /dev/null
+++ b/src/render/pngfile.h
@@ -0,0 +1,34 @@
+/*
+ render/png.h
+ This file is part of the Osirion project and is distributed under
+ the terms of the GNU General Public License version 2
+*/
+
+
+#ifndef _INCLUDED_RENDER_PNGFILE_H_
+#define _INCLUDED_RENDER_PNGFILE_H_
+
+#include "render/image.h"
+
+namespace render
+{
+
+/// a class for loading and saving .png files
+class PNG {
+
+public:
+ /// load a PNG image file from disk
+ /** @param filename short path to the filename to be loaded
+ */
+ static Image *load(const char * filename);
+
+ /// write an image to a PNG file
+ /** @param filename short path to the file to write the image data to
+ */
+ static void save(const char *filename, Image & image);
+};
+
+}
+
+#endif //_INCLUDED_RENDER_PNGFILE_H_
+