aboutsummaryrefslogtreecommitdiff
path: root/image/png.h
diff options
context:
space:
mode:
Diffstat (limited to 'image/png.h')
-rw-r--r--image/png.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/image/png.h b/image/png.h
index b7ac91a3d2..7ecf68e76d 100644
--- a/image/png.h
+++ b/image/png.h
@@ -37,6 +37,7 @@
namespace Common {
class SeekableReadStream;
+class WriteStream;
}
namespace Graphics {
@@ -62,6 +63,14 @@ private:
Graphics::Surface *_outputSurface;
};
+/**
+ * Outputs a compressed PNG stream of the given input surface.
+ *
+ * @param bottomUp Flip the vertical axis so pixel data is drawn from the
+ * bottom up, instead of from the top down.
+ */
+bool writePNG(Common::WriteStream &out, const Graphics::Surface &input, const bool bottomUp = false);
+
} // End of namespace Image
#endif