File indexing completed on 2025-03-09 04:06:00
0001 /* This file is part of the KDE project 0002 * SPDX-FileCopyrightText: 2012 Arjen Hiemstra <ahiemstra@heimr.nl> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef IMAGEBUILDER_H 0008 #define IMAGEBUILDER_H 0009 0010 #include <QObject> 0011 #include <QVariantMap> 0012 0013 class ImageBuilder : public QObject 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit ImageBuilder(QObject *parent = nullptr); 0018 ~ImageBuilder() override; 0019 0020 Q_INVOKABLE QString createBlankImage(int width, int height, int resolution); 0021 Q_INVOKABLE QString createBlankImage(const QVariantMap& options); 0022 Q_INVOKABLE QString createImageFromClipboard(); 0023 Q_INVOKABLE QString createImageFromTemplate(const QVariantMap& options); 0024 0025 private Q_SLOTS: 0026 void createImageFromClipboardDelayed(); 0027 }; 0028 0029 #endif // IMAGEBUILDER_H