aboutsummaryrefslogtreecommitdiff
path: root/image/png.h
diff options
context:
space:
mode:
authorColin Snover2017-05-12 12:44:44 -0500
committerColin Snover2017-05-21 15:55:39 -0500
commitfa0bb7dd5a60c8f323ecbd5e190ad705bec3e934 (patch)
tree3d7006e16ca0aeeca20b85c7258e979ed07756cb /image/png.h
parent71989715d02075ebedfd72e4ec5704b3beb91cca (diff)
downloadscummvm-rg350-fa0bb7dd5a60c8f323ecbd5e190ad705bec3e934.tar.gz
scummvm-rg350-fa0bb7dd5a60c8f323ecbd5e190ad705bec3e934.tar.bz2
scummvm-rg350-fa0bb7dd5a60c8f323ecbd5e190ad705bec3e934.zip
BACKENDS: Compress screenshots using PNG if available
Closes gh-948.
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