diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:24:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:24:48 +0000 |
commit | cca66b9ec4e494c1d919bff0f71a820d8afab1fa (patch) | |
tree | 146f39ded1c938019e1ed42d30923c2ac9e86789 /src/extension/internal/png-output.h | |
parent | Initial commit. (diff) | |
download | inkscape-12fc8abae6d434cac7670a59ed3a67301cc2eb10.tar.xz inkscape-12fc8abae6d434cac7670a59ed3a67301cc2eb10.zip |
Adding upstream version 1.2.2.upstream/1.2.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/extension/internal/png-output.h')
-rw-r--r-- | src/extension/internal/png-output.h | 48 |
1 files changed, 48 insertions, 0 deletions
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 <doctormo@geek-2.com> + * + * 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 <glib.h> + +#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 */ |