From fa0bb7dd5a60c8f323ecbd5e190ad705bec3e934 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Fri, 12 May 2017 12:44:44 -0500 Subject: BACKENDS: Compress screenshots using PNG if available Closes gh-948. --- image/png.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'image/png.h') 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 -- cgit v1.2.3