summaryrefslogtreecommitdiffstats
path: root/src/extension/internal/png-output.h
blob: 39e466df555b826e42b3e5da9b4c02b3e5480c90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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 */