From cca66b9ec4e494c1d919bff0f71a820d8afab1fa Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:24:48 +0200 Subject: Adding upstream version 1.2.2. Signed-off-by: Daniel Baumann --- src/extension/internal/png-output.h | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/extension/internal/png-output.h (limited to 'src/extension/internal/png-output.h') diff --git a/src/extension/internal/png-output.h b/src/extension/internal/png-output.h new file mode 100644 index 0000000..39e466d --- /dev/null +++ b/src/extension/internal/png-output.h @@ -0,0 +1,48 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * An internal raster export which passes the generated PNG output + * to an external file. In the future this module could host more of + * the PNG generation code that isn't needed for other raster export options. + * + * Authors: + * Martin Owens + * + * Copyright (C) 2021 Authors + * + * Released under GNU GPL v2+, read the file 'COPYING' for more information. + */ + +#ifndef EXTENSION_INTERNAL_PNG_OUTPUT_H +#define EXTENSION_INTERNAL_PNG_OUTPUT_H + +#include + +#include "extension/extension.h" +#include "extension/implementation/implementation.h" +#include "extension/output.h" +#include "extension/system.h" + +namespace Inkscape { +namespace Extension { +namespace Internal { + +class PngOutput : public Inkscape::Extension::Implementation::Implementation +{ +public: + PngOutput(){}; + + bool check(Inkscape::Extension::Extension *module) override { return true; }; + + void export_raster(Inkscape::Extension::Output *module, + const SPDocument *doc, std::string const &png_file, gchar const *filename) override; + + static void init(); + +private: +}; + +} // namespace Internal +} // namespace Extension +} // namespace Inkscape + +#endif /* EXTENSION_INTERNAL_PNG_OUTPUT_H */ -- cgit v1.2.3